javax.enterprise.deploy.model
Class XpathEvent

java.lang.Object
  extended byjavax.enterprise.deploy.model.XpathEvent

public final class XpathEvent
extends java.lang.Object

An event describing ConfigBeans added/changed/removed from a configuration


Field Summary
static java.lang.Object BEAN_ADDED
          A bean is added
static java.lang.Object BEAN_CHANGED
          A bean is changed
static java.lang.Object BEAN_REMOVED
          A bean is removed
 
Constructor Summary
XpathEvent(DDBean (src)  bean, java.lang.Object type)
          Create a new XpathEvent
 
Method Summary
 DDBean (src) getBean()
          Get the DDBean
 java.beans.PropertyChangeEvent getChangeEvent()
          Get the property change event
 boolean isAddEvent()
          Is it an add event
 boolean isChangeEvent()
          Is it a change event
 boolean isRemoveEvent()
          Is it a remove event
 void setChangeEvent(java.beans.PropertyChangeEvent propertyChangeEvent)
          Set the property change event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_ADDED

public static final java.lang.Object BEAN_ADDED
A bean is added


BEAN_REMOVED

public static final java.lang.Object BEAN_REMOVED
A bean is removed


BEAN_CHANGED

public static final java.lang.Object BEAN_CHANGED
A bean is changed

Constructor Detail

XpathEvent

public XpathEvent(DDBean (src)  bean,
                  java.lang.Object type)
Create a new XpathEvent

Parameters:
bean - the bean
type - the event type
Method Detail

getChangeEvent

public java.beans.PropertyChangeEvent getChangeEvent()
Get the property change event

Returns:
the property change event

setChangeEvent

public void setChangeEvent(java.beans.PropertyChangeEvent propertyChangeEvent)
Set the property change event

Parameters:
propertyChangeEvent - the property change event

getBean

public DDBean (src)  getBean()
Get the DDBean

Returns:
the DDBean

isAddEvent

public boolean isAddEvent()
Is it an add event

Returns:
true when it is an add event, false otherwise

isRemoveEvent

public boolean isRemoveEvent()
Is it a remove event

Returns:
true when it is a remove event, false otherwise

isChangeEvent

public boolean isChangeEvent()
Is it a change event

Returns:
true when it is a change event, false otherwise