Class BundleRenderUnitFinderImpl
java.lang.Object
org.apache.sling.scripting.core.impl.bundled.BundleRenderUnitFinderImpl
- All Implemented Interfaces:
 EventListener,BundledRenderUnitFinder,org.osgi.framework.BundleListener
public class BundleRenderUnitFinderImpl
extends Object
implements BundledRenderUnitFinder, org.osgi.framework.BundleListener
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) @Nullable BundledRenderUnitfindUnit(@NotNull org.osgi.framework.BundleContext context, @NotNull Set<TypeProvider> providers, @NotNull Set<TypeProvider> allProviders) Retrieves the best matchingBundledRenderUnitfor the providedinheritanceChain, by scanning allTypeProviderbundles for the class or script capable of providing a rendering for resource type chain.@Nullable BundledRenderUnitfindUnit(@NotNull org.osgi.framework.BundleContext context, @NotNull TypeProvider provider, @NotNull Set<TypeProvider> providers) Retrieves a path-basedBundledRenderUnitfrom the passedprovider. 
- 
Constructor Details
- 
BundleRenderUnitFinderImpl
public BundleRenderUnitFinderImpl() 
 - 
 - 
Method Details
- 
findUnit
@Nullable public @Nullable BundledRenderUnit findUnit(@NotNull @NotNull org.osgi.framework.BundleContext context, @NotNull @NotNull Set<TypeProvider> providers, @NotNull @NotNull Set<TypeProvider> allProviders) Description copied from interface:BundledRenderUnitFinderRetrieves the best matchingBundledRenderUnitfor the providedinheritanceChain, by scanning allTypeProviderbundles for the class or script capable of providing a rendering for resource type chain.- Specified by:
 findUnitin interfaceBundledRenderUnitFinder- Parameters:
 context- the bundle context to use.providers- the resource type chain; the set is ordered from the most specific resource type to the most generic oneallProviders- this is a super set, containing both theinheritanceChainbut also all the required providers; a required provider is a provider that's needed by aResourceTypein order to delegate rendering to it, but it's not extended by the sameResourceType- Returns:
 - a 
BundledRenderUnitif one was found,nullotherwise 
 - 
findUnit
@Nullable public @Nullable BundledRenderUnit findUnit(@NotNull @NotNull org.osgi.framework.BundleContext context, @NotNull @NotNull TypeProvider provider, @NotNull @NotNull Set<TypeProvider> providers) Description copied from interface:BundledRenderUnitFinderRetrieves a path-basedBundledRenderUnitfrom the passedprovider.- Specified by:
 findUnitin interfaceBundledRenderUnitFinder- Parameters:
 context- the bundle context to use.provider- the provider from which to retrieve the unitproviders- this is a super set, containing both the providers connected through an inheritance relationship but also all the required providers; a required provider is a provider that's needed by aResourceTypein order to delegate rendering to it, but it's not extended by the sameResourceType- Returns:
 - a 
BundledRenderUnitif one was found,nullotherwise - See Also:
 
 - 
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
 bundleChangedin interfaceorg.osgi.framework.BundleListener
 
 -