public class KeyValueServiceImpl extends DefaultComponent implements KeyValueService
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_STARTED_ORDER |
static String |
CONFIG_XP |
static String |
DEFAULT_STORE_ID |
protected KeyValueStore |
defaultStore |
protected Map<String,KeyValueStoreProvider> |
providers |
protected KeyValueStoreRegistry |
registry |
lastModified
Constructor and Description |
---|
KeyValueServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
descriptorChanged(String name) |
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 |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
registerKeyValueStore(KeyValueStoreDescriptor descriptor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterKeyValueStore(KeyValueStoreDescriptor descriptor) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final int APPLICATION_STARTED_ORDER
public static final String CONFIG_XP
public static final String DEFAULT_STORE_ID
protected final KeyValueStoreRegistry registry
protected Map<String,KeyValueStoreProvider> providers
protected KeyValueStore defaultStore
public KeyValueServiceImpl()
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 registerKeyValueStore(KeyValueStoreDescriptor descriptor)
public void unregisterKeyValueStore(KeyValueStoreDescriptor descriptor)
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 KeyValueStore getKeyValueStore(String name)
KeyValueService
If the store is not found, the default store is returned.
getKeyValueStore
in interface KeyValueService
name
- the store nameprotected void descriptorChanged(String name)
Copyright © 2018 Nuxeo. All rights reserved.