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.
|
default void |
applicationStarted(ComponentContext context)
Deprecated.
since 9.2, since the introduction of
start(ComponentContext) and
stop(ComponentContext) methods |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
default int |
getApplicationStartedOrder()
The component notification order for
applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
void |
start(ComponentContext context)
Start the component.
|
void |
stop(ComponentContext context)
Stop the component.
|
registerExtension, unregisterExtension
getLastModified, setLastModified
void 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 contextdefault int 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.
@Deprecated default void applicationStarted(ComponentContext context)
start(ComponentContext)
and
stop(ComponentContext)
methodsstart(ComponentContext)
and
stop(ComponentContext)
methodsvoid start(ComponentContext context)
void stop(ComponentContext context) throws InterruptedException
InterruptedException
Copyright © 2018 Nuxeo. All rights reserved.