Package org.apache.sling.caconfig.spi
Interface ConfigurationInjectResourceDetectionStrategy
- 
- All Known Subinterfaces:
 ConfigurationInjectResourceDetectionStrategyMultiplexer
@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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ResourcedetectResource(@NotNull SlingHttpServletRequest request)Detects the resource that is associated with the given request. 
 - 
 
- 
- 
Method Detail
- 
detectResource
@Nullable @Nullable Resource detectResource(@NotNull @NotNull SlingHttpServletRequest request)
Detects the resource that is associated with the given request.- Parameters:
 request- Sling request- Returns:
 - Detected Resource or 
nullif this strategy did not detect an applicable resources. 
 
 - 
 
 -