public class CacheServiceImpl extends DefaultComponent implements CacheService
Modifier and Type | Field and Description |
---|---|
protected CacheRegistry |
cacheRegistry |
static ComponentName |
NAME |
lastModified
CACHE_TOPIC, INVALIDATE_ALL
Constructor and Description |
---|
CacheServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
CacheAttributesChecker |
getCache(String name) |
void |
registerCache(CacheDescriptor descriptor) |
void |
registerExtension(Extension extension)
Registers the given extension.
|
void |
unregisterCache(CacheDescriptor descriptor) |
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
activate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, setLastModified, setModifiedNow, unregisterContribution
public static final ComponentName NAME
protected final CacheRegistry cacheRegistry
public CacheServiceImpl()
public CacheAttributesChecker getCache(String name)
getCache
in interface CacheService
public void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public void registerExtension(Extension extension)
Extensible
registerExtension
in interface Extensible
registerExtension
in class DefaultComponent
extension
- the extension to registerpublic void registerCache(CacheDescriptor descriptor)
public void unregisterExtension(Extension extension) throws RuntimeException
Extensible
unregisterExtension
in interface Extensible
unregisterExtension
in class DefaultComponent
extension
- the extension to unregisterRuntimeException
public void unregisterCache(CacheDescriptor descriptor)
Copyright © 2015 Nuxeo SA. All rights reserved.