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 Type
    Method
    Description
    @Nullable Resource
    Detects the resource that is associated with the given request.
  • Method Details

    • 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 null if this strategy did not detect an applicable resources.