public class ScriptCacheImpl extends Object implements org.apache.sling.scripting.api.ScriptCache, org.apache.sling.api.resource.observation.ResourceChangeListener, org.apache.sling.api.resource.observation.ExternalResourceChangeListener, org.osgi.service.event.EventHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHE_SIZE |
| Constructor and Description |
|---|
ScriptCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.apache.sling.scripting.core.impl.ScriptCacheImplConfiguration configuration,
org.osgi.framework.BundleContext bundleCtx) |
void |
clear() |
protected void |
deactivate() |
protected Set<String> |
getCachedScripts() |
org.apache.sling.scripting.api.CachedScript |
getScript(String scriptPath) |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
onChange(@NotNull List<org.apache.sling.api.resource.observation.ResourceChange> list) |
void |
putScript(org.apache.sling.scripting.api.CachedScript script) |
boolean |
removeScript(String scriptPath) |
public static final int DEFAULT_CACHE_SIZE
public org.apache.sling.scripting.api.CachedScript getScript(String scriptPath)
getScript in interface org.apache.sling.scripting.api.ScriptCachepublic void putScript(org.apache.sling.scripting.api.CachedScript script)
putScript in interface org.apache.sling.scripting.api.ScriptCachepublic void clear()
clear in interface org.apache.sling.scripting.api.ScriptCachepublic boolean removeScript(String scriptPath)
removeScript in interface org.apache.sling.scripting.api.ScriptCachepublic void onChange(@NotNull
@NotNull List<org.apache.sling.api.resource.observation.ResourceChange> list)
onChange in interface org.apache.sling.api.resource.observation.ResourceChangeListenerprotected void activate(org.apache.sling.scripting.core.impl.ScriptCacheImplConfiguration configuration,
org.osgi.framework.BundleContext bundleCtx)
protected void deactivate()
public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.