Class ComponentEvent

java.lang.Object
org.nuxeo.runtime.ComponentEvent

public class ComponentEvent extends Object
A component event.

The following event types are defined:

  • COMPONENT_REGISTERED Sent when registering a component after the component is created
  • COMPONENT_UNREGISTERED Sent when unregistering a component before the component is destroyed
  • ACTIVATING_COMPONENT Sent before a component is activated
  • COMPONENT_ACTIVATED Sent after the component is activated
  • DEACTIVATING_COMPONENT Sent before a component is deactivated
  • COMPONENT_DEACTIVATED Sent after a component is deactivated
  • COMPONENT_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_REGISTEREDSent when a component contribution to an extension point is registered
  • EXTENSION_UNREGISTEREDSent when a component contribution to an extension point is unregistered
  • EXTENSION_PENDINGSent 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 Details

  • Constructor Details

  • Method Details

    • getEventName

      public static String getEventName(int id)
      Returns the event name given an integer id.
      Since:
      11.3
    • getEventName

      public final String getEventName()
      Gets the event name as a string.
      Returns:
      the event name
    • toString

      public String toString()
      Overrides:
      toString in class Object