Package org.nuxeo.runtime
Class ComponentEvent
java.lang.Object
org.nuxeo.runtime.ComponentEvent
A component event.
The following event types are defined:
COMPONENT_REGISTERED
Sent when registering a component after the component is createdCOMPONENT_UNREGISTERED
Sent when unregistering a component before the component is destroyedACTIVATING_COMPONENT
Sent before a component is activatedCOMPONENT_ACTIVATED
Sent after the component is activatedDEACTIVATING_COMPONENT
Sent before a component is deactivatedCOMPONENT_DEACTIVATED
Sent after a component is deactivatedCOMPONENT_RESOLVED
Sent when a component was resolved (all dependencies are satisfied)COMPONENT_UNRESOLVED
Sent when a component is unresolved (either it will be unregistered, either one of its dependencies is no more satisfied)COMPONENT_STARTED
Sent when a component was started (even when component is not a java instance)COMPONENT_STOPPED
Sent when a component was stopped (even when component is not a java instance)EXTENSION_REGISTERED
Sent when a component contribution to an extension point is registeredEXTENSION_UNREGISTERED
Sent when a component contribution to an extension point is unregisteredEXTENSION_PENDING
Sent when a component contribution to an extension point is pending, waiting for dependencies to be resolved.COMPONENT_EVENT
May be used by components to end custom events
Ordering of events for a given component:
COMPONENT_REGISTERED
COMPONENT_RESOLVED
(if the component dependencies were satisfied)
ACTIVATING_COMPONENT
COMPONENT_ACTIVATED
EXTENSION_PENDING
(if an extension is pending)EXTENSION_REGISTERED
(if an extension is registered)
STARTING_COMPONENT
COMPONENT_STARTED
EXTENSION_UNREGISTERED
(if an extension was registered)
STOPPING_COMPONENT
COMPONENT_STOPPED
DEACTIVATING_COMPONENT
COMPONENT_DEACTIVATED
COMPONENT_UNRESOLVED
COMPONENT_UNREGISTERED
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
final Serializable
Optional event data.static final int
static final int
static final int
static final int
final int
The event id.final RegistrationInfo
The component this event relates to if any, null otherwise.static final int
static final int
-
Constructor Summary
ConstructorDescriptionComponentEvent
(int id, RegistrationInfo ri) ComponentEvent
(int id, RegistrationInfo ri, Serializable data) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Gets the event name as a string.static String
getEventName
(int id) Returns the event name given an integer id.toString()
-
Field Details
-
COMPONENT_REGISTERED
public static final int COMPONENT_REGISTERED- See Also:
-
ACTIVATING_COMPONENT
public static final int ACTIVATING_COMPONENT- See Also:
-
DEACTIVATING_COMPONENT
public static final int DEACTIVATING_COMPONENT- See Also:
-
COMPONENT_ACTIVATED
public static final int COMPONENT_ACTIVATED- See Also:
-
COMPONENT_DEACTIVATED
public static final int COMPONENT_DEACTIVATED- See Also:
-
COMPONENT_UNREGISTERED
public static final int COMPONENT_UNREGISTERED- See Also:
-
COMPONENT_RESOLVED
public static final int COMPONENT_RESOLVED- See Also:
-
COMPONENT_UNRESOLVED
public static final int COMPONENT_UNRESOLVED- See Also:
-
EXTENSION_REGISTERED
public static final int EXTENSION_REGISTERED- See Also:
-
EXTENSION_UNREGISTERED
public static final int EXTENSION_UNREGISTERED- See Also:
-
EXTENSION_PENDING
public static final int EXTENSION_PENDING- See Also:
-
STARTING_COMPONENT
public static final int STARTING_COMPONENT- See Also:
-
STOPPING_COMPONENT
public static final int STOPPING_COMPONENT- See Also:
-
COMPONENT_STARTED
public static final int COMPONENT_STARTED- See Also:
-
COMPONENT_STOPPED
public static final int COMPONENT_STOPPED- See Also:
-
COMPONENT_EVENT
public static final int COMPONENT_EVENT- See Also:
-
id
public final int idThe event id. -
registrationInfo
The component this event relates to if any, null otherwise. -
data
Optional event data.
-
-
Constructor Details
-
ComponentEvent
-
ComponentEvent
-
-
Method Details