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, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public 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()
Component
Component.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 Component
public void stop(ComponentContext context) throws InterruptedException
Component
stop
in interface Component
stop
in class DefaultComponent
InterruptedException
public KeyValueStore getKeyValueStore(String name)
KeyValueService
If the store is not found, the default store is returned.
getKeyValueStore
in interface KeyValueService
name
- the store nameCopyright © 2018 Nuxeo. All rights reserved.