Class ProcessorContext


  • public class ProcessorContext
    extends Object
    The context in which processing of a Clientlib takes place. Provides a registry to avoid clientlib duplicates.
    • Field Detail

      • CONTEXT_KEY

        public static final String CONTEXT_KEY
      • request

        protected final org.apache.sling.api.SlingHttpServletRequest request
      • resolver

        protected final org.apache.sling.api.resource.ResourceResolver resolver
      • mapClientlibURLs

        protected final boolean mapClientlibURLs
      • useMinifiedFiles

        protected final boolean useMinifiedFiles
    • Constructor Detail

      • ProcessorContext

        public ProcessorContext​(org.apache.sling.api.SlingHttpServletRequest request,
                                org.apache.sling.api.resource.ResourceResolver resolver,
                                ExecutorService executorService,
                                boolean mapClientlibURLs,
                                boolean useMinifiedFiles)
    • Method Detail

      • getRequest

        public org.apache.sling.api.SlingHttpServletRequest getRequest()
      • getResolver

        public org.apache.sling.api.resource.ResourceResolver getResolver()
      • mapClientlibURLs

        public boolean mapClientlibURLs()
      • useMinifiedFiles

        public boolean useMinifiedFiles()
      • execute

        public void execute​(Runnable runnable)
        Schedules the runnable for execution in the future.
      • submit

        public <T> Future<T> submit​(Callable<T> callable)
        Schedules something for execution in the future.