Class ResolutionCache
java.lang.Object
org.apache.sling.servlets.resolver.internal.resolution.ResolutionCache
- All Implemented Interfaces:
EventListener
,ExternalResourceChangeListener
,ResourceChangeListener
,org.osgi.framework.ServiceListener
,org.osgi.service.event.EventHandler
public class ResolutionCache
extends Object
implements org.osgi.service.event.EventHandler, ResourceChangeListener, ExternalResourceChangeListener, org.osgi.framework.ServiceListener
Cache for script resolution
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.observation.ResourceChangeListener
CHANGE_ADDED, CHANGE_CHANGED, CHANGE_PROVIDER_ADDED, CHANGE_PROVIDER_REMOVED, CHANGE_REMOVED, CHANGES, PATHS, PROPERTY_NAMES_HINT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(org.osgi.framework.BundleContext context, org.apache.sling.servlets.resolver.internal.ResolverConfig config) Activate this component.protected void
deactivate
(org.osgi.framework.BundleContext context) Deactivate this component.void
javax.servlet.Servlet
get
(AbstractResourceCollector context) Get the list of script engine extensionsvoid
handleEvent
(org.osgi.service.event.Event event) protected void
modified
(org.osgi.framework.BundleContext context, org.apache.sling.servlets.resolver.internal.ResolverConfig config) void
onChange
(List<ResourceChange> changes) Report resource changes based on the filter properties of this listener.void
put
(AbstractResourceCollector context, javax.servlet.Servlet candidate) void
serviceChanged
(org.osgi.framework.ServiceEvent event)
-
Constructor Details
-
ResolutionCache
public ResolutionCache()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext context, org.apache.sling.servlets.resolver.internal.ResolverConfig config) throws org.osgi.framework.InvalidSyntaxException Activate this component.- Throws:
org.osgi.framework.InvalidSyntaxException
-
modified
protected void modified(org.osgi.framework.BundleContext context, org.apache.sling.servlets.resolver.internal.ResolverConfig config) throws org.osgi.framework.InvalidSyntaxException - Throws:
org.osgi.framework.InvalidSyntaxException
-
deactivate
protected void deactivate(org.osgi.framework.BundleContext context) Deactivate this component. -
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 interfaceorg.osgi.service.event.EventHandler
- See Also:
-
EventHandler.handleEvent(org.osgi.service.event.Event)
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event) - Specified by:
serviceChanged
in interfaceorg.osgi.framework.ServiceListener
-
flushCache
public void flushCache() -
onChange
Description copied from interface:ResourceChangeListener
Report resource changes based on the filter properties of this listener.Note that resource changes for paths which are ancestors of the paths this listener was registered to may be reported through this method. This is due to limitations of certain resource providers to provide events on a more granular level (e.g. for deletion or movement of resources containing (potentially nested) child resources).
Starting with version 1.2 of this API, an instance of
ResoureChangeList
is passed as the parameter to allow passing additional information.- Specified by:
onChange
in interfaceResourceChangeListener
- Parameters:
changes
- The changes list. This list is immutable.
-
get
-
put
-