public class KeyValueServiceImpl extends DefaultComponent implements KeyValueService
| Modifier and Type | Field and Description |
|---|---|
static int |
APPLICATION_STARTED_ORDER |
static String |
DEFAULT_STORE_ID |
protected KeyValueStore |
defaultStore |
protected Map<String,KeyValueStoreProvider> |
providers |
static String |
XP_CONFIG |
lastModified, name| Constructor and Description |
|---|
KeyValueServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
KeyValueStore |
getKeyValueStore(String name)
Gets the Key/Value store with the given name.
|
void |
stop(ComponentContext context)
Stop the component.
|
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, unregister, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedpublic static final String XP_CONFIG
public static final String DEFAULT_STORE_ID
public static final int APPLICATION_STARTED_ORDER
protected Map<String,KeyValueStoreProvider> providers
protected KeyValueStore defaultStore
public KeyValueServiceImpl()
public int getApplicationStartedOrder()
ComponentComponent.applicationStarted(org.nuxeo.runtime.model.ComponentContext).
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
getApplicationStartedOrder in interface Componentpublic void stop(ComponentContext context) throws InterruptedException
Componentstop in interface Componentstop in class DefaultComponentInterruptedExceptionpublic KeyValueStore getKeyValueStore(String name)
KeyValueServiceIf the store is not found, the default store is returned.
getKeyValueStore in interface KeyValueServicename - the store nameCopyright © 2018 Nuxeo. All rights reserved.