Interface BundledUnitManager
-
@ProviderType public interface BundledUnitManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.ClassLoadergetBundledRenderUnitClassloader(javax.script.Bindings bindings)Given aBindingsmap, this method will check if thebindingscontain a value for theBundledRenderUnit.VARIABLEproperty and if the object provided byBundledRenderUnit.getUnit()is an instance of aRenderUnit.java.net.URLgetScript(javax.script.Bindings bindings, java.lang.String identifier)Given aBindingsmap, this method will check if thebindingscontain a value for theBundledRenderUnit.VARIABLEproperty and, if aBundledRenderUnitis found, attempt to return the URL of dependency that theBundledRenderUnitneeds to load.
-
-
-
Method Detail
-
getBundledRenderUnitClassloader
@Nullable @Nullable java.lang.ClassLoader getBundledRenderUnitClassloader(javax.script.Bindings bindings)
Given a
Bindingsmap, this method will check if thebindingscontain a value for theBundledRenderUnit.VARIABLEproperty and if the object provided byBundledRenderUnit.getUnit()is an instance of aRenderUnit. If so, this service will return theClassLoaderof theBundleproviding theBundledRenderUnit.- Parameters:
bindings- the bindings passed initially to the HTL Script Engine- Returns:
- the
BundledRenderUnit's classloader if one is found,nullotherwise
-
getScript
java.net.URL getScript(javax.script.Bindings bindings, java.lang.String identifier)Given aBindingsmap, this method will check if thebindingscontain a value for theBundledRenderUnit.VARIABLEproperty and, if aBundledRenderUnitis found, attempt to return the URL of dependency that theBundledRenderUnitneeds 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 aBundledRenderUnitfrom theBindingsneeds to load- Returns:
- the URL of the
identifierdependency, if one was found
-
-