Package org.nuxeo.runtime
Class ComponentEvent
java.lang.Object
org.nuxeo.runtime.ComponentEvent
A component event.
The following event types are defined:
COMPONENT_REGISTEREDSent when registering a component after the component is createdCOMPONENT_UNREGISTEREDSent when unregistering a component before the component is destroyedACTIVATING_COMPONENTSent before a component is activatedCOMPONENT_ACTIVATEDSent after the component is activatedDEACTIVATING_COMPONENTSent before a component is deactivatedCOMPONENT_DEACTIVATEDSent after a component is deactivatedCOMPONENT_RESOLVEDSent when a component was resolved (all dependencies are satisfied)COMPONENT_UNRESOLVEDSent when a component is unresolved (either it will be unregistered, either one of its dependencies is no more satisfied)COMPONENT_STARTEDSent when a component was started (even when component is not a java instance)COMPONENT_STOPPEDSent when a component was stopped (even when component is not a java instance)EXTENSION_REGISTEREDSent when a component contribution to an extension point is registeredEXTENSION_UNREGISTEREDSent when a component contribution to an extension point is unregisteredEXTENSION_PENDINGSent when a component contribution to an extension point is pending, waiting for dependencies to be resolved.COMPONENT_EVENTMay be used by components to end custom events
Ordering of events for a given component:
COMPONENT_REGISTEREDCOMPONENT_RESOLVED(if the component dependencies were satisfied)
ACTIVATING_COMPONENTCOMPONENT_ACTIVATED
EXTENSION_PENDING(if an extension is pending)EXTENSION_REGISTERED(if an extension is registered)
STARTING_COMPONENTCOMPONENT_STARTED
EXTENSION_UNREGISTERED(if an extension was registered)
STOPPING_COMPONENTCOMPONENT_STOPPED
DEACTIVATING_COMPONENTCOMPONENT_DEACTIVATEDCOMPONENT_UNRESOLVEDCOMPONENT_UNREGISTERED
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intfinal SerializableOptional event data.static final intstatic final intstatic final intstatic final intfinal intThe event id.final RegistrationInfoThe component this event relates to if any, null otherwise.static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionComponentEvent(int id, RegistrationInfo ri) ComponentEvent(int id, RegistrationInfo ri, Serializable data) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets the event name as a string.static StringgetEventName(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