Interface BundledUnitManager
-
@ProviderType public interface BundledUnitManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.ClassLoader
getBundledRenderUnitClassloader(javax.script.Bindings bindings)
Given aBindings
map, this method will check if thebindings
contain a value for theBundledRenderUnit.VARIABLE
property and if the object provided byBundledRenderUnit.getUnit()
is an instance of aRenderUnit
.java.net.URL
getScript(javax.script.Bindings bindings, java.lang.String identifier)
Given aBindings
map, this method will check if thebindings
contain a value for theBundledRenderUnit.VARIABLE
property and, if aBundledRenderUnit
is found, attempt to return the URL of dependency that theBundledRenderUnit
needs to load.
-
-
-
Method Detail
-
getBundledRenderUnitClassloader
@Nullable @Nullable java.lang.ClassLoader getBundledRenderUnitClassloader(javax.script.Bindings bindings)
Given a
Bindings
map, this method will check if thebindings
contain a value for theBundledRenderUnit.VARIABLE
property and if the object provided byBundledRenderUnit.getUnit()
is an instance of aRenderUnit
. If so, this service will return theClassLoader
of theBundle
providing theBundledRenderUnit
.- Parameters:
bindings
- the bindings passed initially to the HTL Script Engine- Returns:
- the
BundledRenderUnit
's classloader if one is found,null
otherwise
-
getScript
java.net.URL getScript(javax.script.Bindings bindings, java.lang.String identifier)
Given aBindings
map, this method will check if thebindings
contain a value for theBundledRenderUnit.VARIABLE
property and, if aBundledRenderUnit
is found, attempt to return the URL of dependency that theBundledRenderUnit
needs to load. This will take into account the bundle wirings of the unit's providing bundle (seeBundledRenderUnit.getBundle()
).- Parameters:
bindings
- the bindings passed initially to the HTL Script Engineidentifier
- the identifier of the dependency that aBundledRenderUnit
from theBindings
needs to load- Returns:
- the URL of the
identifier
dependency, if one was found
-
-