Interface BundledRenderUnitFinder
-
@ConsumerType public interface BundledRenderUnitFinderTheBundledScriptFinderfinds theBundledRenderUnitcorresponding to a certain chain ofTypeProviders or corresponding to a certain path-basedBundledRenderUnitCapability.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable BundledRenderUnitfindUnit(@NotNull org.osgi.framework.BundleContext context, @NotNull java.util.Set<TypeProvider> inheritanceChain, @NotNull java.util.Set<TypeProvider> allRelatedProviders)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 java.util.Set<TypeProvider> allRelatedProviders)Retrieves a path-basedBundledRenderUnitfrom the passedprovider.
-
-
-
Method Detail
-
findUnit
@Nullable @Nullable BundledRenderUnit findUnit(@NotNull @NotNull org.osgi.framework.BundleContext context, @NotNull @NotNull java.util.Set<TypeProvider> inheritanceChain, @NotNull @NotNull java.util.Set<TypeProvider> allRelatedProviders)
Retrieves the best matchingBundledRenderUnitfor the providedinheritanceChain, by scanning allTypeProviderbundles for the class or script capable of providing a rendering for resource type chain.- Parameters:
context- the bundle context to use.inheritanceChain- the resource type chain; the set is ordered from the most specific resource type to the most generic oneallRelatedProviders- 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 @Nullable BundledRenderUnit findUnit(@NotNull @NotNull org.osgi.framework.BundleContext context, @NotNull @NotNull TypeProvider provider, @NotNull @NotNull java.util.Set<TypeProvider> allRelatedProviders)
Retrieves a path-basedBundledRenderUnitfrom the passedprovider.- Parameters:
context- the bundle context to use.provider- the provider from which to retrieve the unitallRelatedProviders- 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:
BundledRenderUnitCapability.getPath()
-
-