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, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedpublic static final String XP_CODEC
protected final Map<String,CodecFactory> codecFactories
public CodecServiceImpl()
public void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void stop(ComponentContext context) throws InterruptedException
Componentstop in interface Componentstop in class DefaultComponentInterruptedExceptionpublic 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 <T> Codec<T> getCodec(String codecName, Class<T> objectClass)
CodecServicegetCodec in interface CodecServiceT - 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.