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