public class ComponentEvent extends Object implements Serializable
The following event types are defined:
COMPONENT_REGISTERED
Sent when registering a component after the component is created
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 satosfied)
COMPONENT_UNREGISTERED
Sent when unregsitering a component before the component is destroyed
COMPONENT_EVENT
May be used by components to end custom events
Modifier and Type | Field and Description |
---|---|
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_STARTED |
static int |
COMPONENT_STOPPED |
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.
|
static int |
STARTING_COMPONENT |
static int |
STOPPING_COMPONENT |
Constructor and Description |
---|
ComponentEvent(int id,
RegistrationInfo ri) |
ComponentEvent(int id,
RegistrationInfo ri,
Serializable data) |
Modifier and Type | Method and Description |
---|---|
String |
getEventName()
Gets the event name as a string.
|
String |
toString() |
public static final int COMPONENT_REGISTERED
public static final int ACTIVATING_COMPONENT
public static final int DEACTIVATING_COMPONENT
public static final int COMPONENT_ACTIVATED
public static final int COMPONENT_DEACTIVATED
public static final int COMPONENT_UNREGISTERED
public static final int COMPONENT_RESOLVED
public static final int COMPONENT_UNRESOLVED
public static final int EXTENSION_REGISTERED
public static final int EXTENSION_UNREGISTERED
public static final int EXTENSION_PENDING
public static final int STARTING_COMPONENT
public static final int STOPPING_COMPONENT
public static final int COMPONENT_STARTED
public static final int COMPONENT_STOPPED
public static final int COMPONENT_EVENT
public final int id
public final RegistrationInfo registrationInfo
public final Serializable data
public ComponentEvent(int id, RegistrationInfo ri)
public ComponentEvent(int id, RegistrationInfo ri, Serializable data)
Copyright © 2018 Nuxeo. All rights reserved.