public class TransientStorageComponent extends DefaultComponent implements TransientStoreService
TransientStoreService
and managing the unerlying extension pointConstructor 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 |
deactivate(ComponentContext context)
Deactivates the component.
|
void |
doGC()
Triggers Garbage collecting of all
TransientStore |
TransientStore |
getStore(String name)
Retrieve a
TransientStore by it's name |
TransientStoreConfig |
getStoreConfig(String name)
Read configuration for the target named
TransientStore |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
TransientStore |
registerStore(TransientStoreConfig config)
Dynamically register a new
TransientStore from it's config |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String EP_STORE
public TransientStore getStore(String name)
TransientStoreService
TransientStore
by it's namegetStore
in interface TransientStoreService
name
- the name of the target TransientStore
TransientStore
or null if not foundpublic TransientStoreConfig getStoreConfig(String name) throws IOException
TransientStoreService
TransientStore
getStoreConfig
in interface TransientStoreService
name
- the name of the target TransientStore
TransientStoreConfig
of the target store or null if not foundIOException
public TransientStore registerStore(TransientStoreConfig config)
TransientStoreService
TransientStore
from it's configregisterStore
in interface TransientStoreService
config
- the TransientStoreConfig
for the new TransientStore
TransientStore
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public void doGC()
TransientStoreService
TransientStore
doGC
in interface TransientStoreService
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 unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2015 Nuxeo SA. All rights reserved.