Class DefaultContextPathStrategy
java.lang.Object
org.apache.sling.caconfig.resource.impl.def.DefaultContextPathStrategy
- All Implemented Interfaces:
ContextPathStrategy
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Iterator<ContextResource>
findContextResources
(@NotNull Resource resource) Finds context paths for the given resource.
-
Constructor Details
-
DefaultContextPathStrategy
public DefaultContextPathStrategy()
-
-
Method Details
-
findContextResources
@NotNull public @NotNull Iterator<ContextResource> findContextResources(@NotNull @NotNull Resource resource) Description copied from interface:ContextPathStrategy
Finds context paths for the given resource.- Specified by:
findContextResources
in interfaceContextPathStrategy
- Parameters:
resource
- Context resource- Returns:
- Root resource and config reference for each context found (in order of closest matching first). Only one of the parent resources or the resource itself may be included in the result. If none are found an empty list is returned.
-