Class DefaultConfigurationInjectResourceDetectionStrategy
java.lang.Object
org.apache.sling.caconfig.impl.def.DefaultConfigurationInjectResourceDetectionStrategy
- All Implemented Interfaces:
ConfigurationInjectResourceDetectionStrategy
public class DefaultConfigurationInjectResourceDetectionStrategy
extends Object
implements ConfigurationInjectResourceDetectionStrategy
Default implementation of
ConfigurationInjectResourceDetectionStrategy
which always
uses the resource of the current request.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Resource
detectResource
(@NotNull SlingHttpServletRequest request) Detects the resource that is associated with the given request.
-
Constructor Details
-
DefaultConfigurationInjectResourceDetectionStrategy
public DefaultConfigurationInjectResourceDetectionStrategy()
-
-
Method Details
-
detectResource
@Nullable public @Nullable Resource detectResource(@NotNull @NotNull SlingHttpServletRequest request) Description copied from interface:ConfigurationInjectResourceDetectionStrategy
Detects the resource that is associated with the given request.- Specified by:
detectResource
in interfaceConfigurationInjectResourceDetectionStrategy
- Parameters:
request
- Sling request- Returns:
- Detected Resource or
null
if this strategy did not detect an applicable resources.
-