@ProviderType
public interface BundledUnitManager
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.ClassLoader |
getBundledRenderUnitClassloader(javax.script.Bindings bindings)
Given a
Bindings map, this method will check if the bindings contain a value for the BundledRenderUnit.VARIABLE property and if the object provided by BundledRenderUnit.getUnit() is an instance of a RenderUnit. |
java.net.URL |
getScript(javax.script.Bindings bindings,
java.lang.String identifier)
Given a
Bindings map, this method will check if the bindings contain a value for the BundledRenderUnit.VARIABLE property and, if a BundledRenderUnit is found, attempt to return the URL of dependency that the
BundledRenderUnit needs to load. |
@Nullable @Nullable java.lang.ClassLoader getBundledRenderUnitClassloader(javax.script.Bindings bindings)
Given a Bindings map, this method will check if the bindings contain a value for the BundledRenderUnit.VARIABLE property and if the object provided by BundledRenderUnit.getUnit() is an instance of a RenderUnit. If so, this service will return the ClassLoader of the Bundle providing the BundledRenderUnit.
bindings - the bindings passed initially to the HTL Script EngineBundledRenderUnit's classloader if one is found, null otherwisejava.net.URL getScript(javax.script.Bindings bindings,
java.lang.String identifier)
Bindings map, this method will check if the bindings contain a value for the BundledRenderUnit.VARIABLE property and, if a BundledRenderUnit is found, attempt to return the URL of dependency that the
BundledRenderUnit needs to load. This will take into account the bundle wirings of the unit's providing bundle (see BundledRenderUnit.getBundle()).bindings - the bindings passed initially to the HTL Script Engineidentifier - the identifier of the dependency that a BundledRenderUnit from the Bindings needs to loadidentifier dependency, if one was foundCopyright © 2022 The Apache Software Foundation. All rights reserved.