Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime
Class ComponentEvent

java.lang.Object
  extended by org.nuxeo.runtime.ComponentEvent
All Implemented Interfaces:
Serializable

public class ComponentEvent
extends Object
implements Serializable

A component event.

The following event types are defined:

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
static int ACTIVATING_COMPONENT
           
static int COMPONENT_ACTIVATED
           
static int COMPONENT_DEACTIVATED
           
static int COMPONENT_EVENT
           
static int COMPONENT_REGISTERED
           
static int COMPONENT_RESOLVED
           
static int COMPONENT_UNREGISTERED
           
static int COMPONENT_UNRESOLVED
           
 Serializable data
          Optional event data.
static int DEACTIVATING_COMPONENT
           
static int EXTENSION_PENDING
           
static int EXTENSION_REGISTERED
           
static int EXTENSION_UNREGISTERED
           
 int id
          The event id.
 RegistrationInfo registrationInfo
          The component this event relates to if any, null otherwise.
 
Constructor Summary
ComponentEvent(int id, RegistrationInfo ri)
           
ComponentEvent(int id, RegistrationInfo ri, Serializable data)
           
 
Method Summary
 String getEventName()
          Gets the event name as a string.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_REGISTERED

public static final int COMPONENT_REGISTERED
See Also:
Constant Field Values

ACTIVATING_COMPONENT

public static final int ACTIVATING_COMPONENT
See Also:
Constant Field Values

DEACTIVATING_COMPONENT

public static final int DEACTIVATING_COMPONENT
See Also:
Constant Field Values

COMPONENT_ACTIVATED

public static final int COMPONENT_ACTIVATED
See Also:
Constant Field Values

COMPONENT_DEACTIVATED

public static final int COMPONENT_DEACTIVATED
See Also:
Constant Field Values

COMPONENT_UNREGISTERED

public static final int COMPONENT_UNREGISTERED
See Also:
Constant Field Values

COMPONENT_RESOLVED

public static final int COMPONENT_RESOLVED
See Also:
Constant Field Values

COMPONENT_UNRESOLVED

public static final int COMPONENT_UNRESOLVED
See Also:
Constant Field Values

EXTENSION_REGISTERED

public static final int EXTENSION_REGISTERED
See Also:
Constant Field Values

EXTENSION_UNREGISTERED

public static final int EXTENSION_UNREGISTERED
See Also:
Constant Field Values

EXTENSION_PENDING

public static final int EXTENSION_PENDING
See Also:
Constant Field Values

COMPONENT_EVENT

public static final int COMPONENT_EVENT
See Also:
Constant Field Values

id

public final int id
The event id.


registrationInfo

public final RegistrationInfo registrationInfo
The component this event relates to if any, null otherwise.


data

public final Serializable data
Optional event data.

Constructor Detail

ComponentEvent

public ComponentEvent(int id,
                      RegistrationInfo ri)

ComponentEvent

public ComponentEvent(int id,
                      RegistrationInfo ri,
                      Serializable data)
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.