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, unregisterExtension
getLastModified, setLastModified
void activate(ComponentContext context) throws Exception
This method is called by the runtime when a component is activated.
context
- the runtime contextException
- if an error occurs during activationvoid deactivate(ComponentContext context) throws Exception
This method is called by the runtime when a component is deactivated.
context
- the runtime contextException
- if an error occurs during activationint 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) throws Exception
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.