Class ResolutionCache

  • All Implemented Interfaces:
    org.apache.sling.api.resource.observation.ExternalResourceChangeListener, org.apache.sling.api.resource.observation.ResourceChangeListener, org.osgi.service.event.EventHandler

    public class ResolutionCache
    extends Object
    implements org.osgi.service.event.EventHandler, org.apache.sling.api.resource.observation.ResourceChangeListener, org.apache.sling.api.resource.observation.ExternalResourceChangeListener
    Cache for script resolution
    • Constructor Detail

      • ResolutionCache

        public ResolutionCache()
    • Method Detail

      • activate

        protected void activate​(org.osgi.framework.BundleContext context,
                                org.apache.sling.servlets.resolver.internal.ResolverConfig config)
                         throws org.apache.sling.api.resource.LoginException
        Activate this component.
        Throws:
        org.apache.sling.api.resource.LoginException
      • modified

        protected void modified​(org.osgi.framework.BundleContext context,
                                org.apache.sling.servlets.resolver.internal.ResolverConfig config)
                         throws org.apache.sling.api.resource.LoginException
        Throws:
        org.apache.sling.api.resource.LoginException
      • deactivate

        protected void deactivate()
        Deactivate this component.
      • getScriptEngineExtensions

        public List<String> getScriptEngineExtensions()
        Get the list of script engine extensions
        Returns:
        The list of script engine extensions
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler
        See Also:
        EventHandler.handleEvent(org.osgi.service.event.Event)
      • flushCache

        public void flushCache()
      • onChange

        public void onChange​(List<org.apache.sling.api.resource.observation.ResourceChange> changes)
        Specified by:
        onChange in interface org.apache.sling.api.resource.observation.ResourceChangeListener