public class TransientStorageComponent extends DefaultComponent implements TransientStoreService
TransientStoreService
and managing the unerlying extension pointModifier and Type | Field and Description |
---|---|
protected Map<String,TransientStoreConfig> |
configs |
static String |
DEFAULT_STORE_NAME |
static String |
EP_STORE |
protected Map<String,TransientStore> |
stores |
lastModified
Constructor and Description |
---|
TransientStorageComponent() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
cleanUpStores() |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
void |
doGC()
Triggers Garbage collecting of all
TransientStore |
TransientStore |
getStore(String name)
Retrieves a
TransientStore by it's name. |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected TransientStore |
registerDefaultStore() |
protected TransientStore |
registerStore(TransientStoreConfig config) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
protected Map<String,TransientStoreConfig> configs
protected Map<String,TransientStore> stores
public static final String EP_STORE
public static final String DEFAULT_STORE_NAME
public TransientStorageComponent()
public TransientStore getStore(String name)
TransientStoreService
TransientStore
by it's name.
If the TransientStore
is not found, returns the default one.
getStore
in interface TransientStoreService
name
- the name of the target TransientStore
TransientStore
or the default one if not foundprotected TransientStore registerDefaultStore()
public void doGC()
TransientStoreService
TransientStore
doGC
in interface TransientStoreService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
protected TransientStore registerStore(TransientStoreConfig config)
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 cleanUpStores()
Copyright © 2015 Nuxeo SA. All rights reserved.