Interface BundledUnitManager
- All Known Implementing Classes:
BundledUnitManagerImpl
@ProviderType
public interface BundledUnitManager
-
Method Summary
Modifier and TypeMethodDescription@Nullable ClassLoadergetBundledRenderUnitClassloader(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.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 Details
-
getBundledRenderUnitClassloader
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
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
-