public interface Component extends Extensible, TimestampedService
Components are extensible and adaptable objects and they provide methods to respond to component life cycle events.
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
int |
getApplicationStartedOrder()
The component notification order for
applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
registerExtension, unregisterExtensiongetLastModified, setLastModifiedvoid activate(ComponentContext context)
This method is called by the runtime when a component is activated.
context - the runtime contextvoid deactivate(ComponentContext context)
This method is called by the runtime when a component is deactivated.
context - the runtime contextint getApplicationStartedOrder()
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.
void applicationStarted(ComponentContext context)
Copyright © 2016 Nuxeo SA. All rights reserved.