public class CodecServiceImpl extends DefaultComponent implements CodecService
Modifier and Type | Field and Description |
---|---|
protected Map<String,CodecFactory> |
codecFactories |
static String |
XP_CODEC |
lastModified, name
Constructor and Description |
---|
CodecServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
<T> Codec<T> |
getCodec(String codecName,
Class<T> objectClass)
Returns a codec able to code and decode object of type T
|
void |
start(ComponentContext context)
Start the component.
|
void |
stop(ComponentContext context)
Stop the component.
|
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final String XP_CODEC
protected final Map<String,CodecFactory> codecFactories
public CodecServiceImpl()
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
public void stop(ComponentContext context) throws InterruptedException
Component
stop
in interface Component
stop
in class DefaultComponent
InterruptedException
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 <T> Codec<T> getCodec(String codecName, Class<T> objectClass)
CodecService
getCodec
in interface CodecService
T
- The class name of the objectcodecName
- the name of the registered codec implementationobjectClass
- the object class of the object to encode decodeCopyright © 2019 Nuxeo. All rights reserved.