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