javax.enterprise.deploy.model

Class XpathEvent

public class XpathEvent extends Object

An Event class describing DDBeans being added to or removed from a J2EE application, or updated in place.
Field Summary
static ObjectBEAN_ADDED
Adding a DDBean
static ObjectBEAN_CHANGED
Changing a DDBean
static ObjectBEAN_REMOVED
Removing a DDBean
Constructor Summary
XpathEvent(DDBean bean, Object type)
A description of a change in the DDBean tree.
Method Summary
DDBeangetBean()
The bean being added/removed/changed.
PropertyChangeEventgetChangeEvent()
Gets the underlying property change event, with new and old values.
booleanisAddEvent()
Is this an add event?
booleanisChangeEvent()
Is this a change event?
booleanisRemoveEvent()
Is this a remove event?
voidsetChangeEvent(PropertyChangeEvent pce)
Sets the underlying property change event, with new and old values.

Field Detail

BEAN_ADDED

public static final Object BEAN_ADDED
Adding a DDBean

BEAN_CHANGED

public static final Object BEAN_CHANGED
Changing a DDBean

BEAN_REMOVED

public static final Object BEAN_REMOVED
Removing a DDBean

Constructor Detail

XpathEvent

public XpathEvent(DDBean bean, Object type)
A description of a change in the DDBean tree.

Parameters: bean The DDBean being added, removed, or updated. type Indicates whether this is an add, remove, or update event.

Method Detail

getBean

public DDBean getBean()
The bean being added/removed/changed.

Returns: The bean being added/removed/changed.

getChangeEvent

public PropertyChangeEvent getChangeEvent()
Gets the underlying property change event, with new and old values. This is typically used for change events. It is not in the public API, but is included in the downloadable JSR-88 classes.

isAddEvent

public boolean isAddEvent()
Is this an add event?

Returns: true if this is an add event.

isChangeEvent

public boolean isChangeEvent()
Is this a change event?

Returns: true if this is a change event.

isRemoveEvent

public boolean isRemoveEvent()
Is this a remove event?

Returns: true if this is a remove event.

setChangeEvent

public void setChangeEvent(PropertyChangeEvent pce)
Sets the underlying property change event, with new and old values. This is typically used for change events. It is not in the public API, but is included in the downloadable JSR-88 classes.

Parameters: pce The property change event that triggered this XpathEvent.