Package org.apache.sling.caconfig.spi
Interface ConfigurationInjectResourceDetectionStrategy
- All Known Subinterfaces:
ConfigurationInjectResourceDetectionStrategyMultiplexer
- All Known Implementing Classes:
DefaultConfigurationInjectResourceDetectionStrategy
@ConsumerType
public interface ConfigurationInjectResourceDetectionStrategy
Defines how to look up the current context resource to be used for getting the context-aware configurations
for injecting into Sling Models or for Sling Scripting (BindingsValuesProvider).
-
Method Summary
Modifier and TypeMethodDescription@Nullable Resource
detectResource
(@NotNull SlingHttpServletRequest request) Detects the resource that is associated with the given request.
-
Method Details
-
detectResource
Detects the resource that is associated with the given request.- Parameters:
request
- Sling request- Returns:
- Detected Resource or
null
if this strategy did not detect an applicable resources.
-