public class AvroComponent extends DefaultComponent
Modifier and Type | Class and Description |
---|---|
protected static class |
AvroComponent.AvroMapperDescriptorRegistry |
protected static class |
AvroComponent.AvroReplacementDescriptorRegistry |
protected static class |
AvroComponent.AvroSchemaDescriptorRegistry |
protected static class |
AvroComponent.AvroSchemaFactoryDescriptorRegistry |
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_START_ORDER |
protected AvroComponent.AvroMapperDescriptorRegistry |
avroMapperDescriptors |
protected AvroComponent.AvroSchemaFactoryDescriptorRegistry |
avroSchemaFactoryDescriptors |
protected AvroService |
avroService |
static String |
FACTORY_XP |
static String |
MAPPER_XP |
static String |
REPLACEMENT_XP |
protected AvroComponent.AvroReplacementDescriptorRegistry |
replacementDescriptors |
static String |
SCHEMA_XP |
protected AvroComponent.AvroSchemaDescriptorRegistry |
schemaDescriptors |
lastModified
Constructor and Description |
---|
AvroComponent() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class associated with this object.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
start(ComponentContext context)
Start the component.
|
void |
stop(ComponentContext context)
Stop the component.
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
public static final int APPLICATION_START_ORDER
public static final String SCHEMA_XP
public static final String MAPPER_XP
public static final String FACTORY_XP
public static final String REPLACEMENT_XP
protected final AvroComponent.AvroMapperDescriptorRegistry avroMapperDescriptors
protected final AvroComponent.AvroSchemaDescriptorRegistry schemaDescriptors
protected final AvroComponent.AvroSchemaFactoryDescriptorRegistry avroSchemaFactoryDescriptors
protected final AvroComponent.AvroReplacementDescriptorRegistry replacementDescriptors
protected AvroService avroService
public AvroComponent()
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
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.
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
public void stop(ComponentContext context)
Component
stop
in interface Component
stop
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2018 Nuxeo. All rights reserved.