FileDocCategorySizeDatePackage
XpathEvent.javaAPI DocGlassfish v2 API3680Fri May 04 22:35:44 BST 2007javax.enterprise.deploy.model

XpathEvent

public final class XpathEvent extends Object
An Event class describing ConfigBeans being added/subtracted from a server configuration.

Fields Summary
private final DDBean
bean
private final Object
typ
private PropertyChangeEvent
changeEvent
public static final Object
BEAN_ADDED
Adding a DDBean
public static final Object
BEAN_REMOVED
Removing a DDBean
public static final Object
BEAN_CHANGED
Changing a DDBean
Constructors Summary
public XpathEvent(DDBean bean, Object typ)
A description of a change in the ConfigBean tree.

param
bean The ConfigBean being added/removed.
param
typ Indicates an add/remove event.


                               
        
       this.bean = bean; this.typ = typ;
       
Methods Summary
public DDBeangetBean()
The bean being added/removed/changed.

return
The bean being added/removed/changed.

return bean;
public java.beans.PropertyChangeEventgetChangeEvent()

       if(typ == BEAN_CHANGED) return changeEvent;
       return null;
   
public booleanisAddEvent()
Is this an add event?

return
true if this is an add event.

return typ == BEAN_ADDED;
public booleanisChangeEvent()
Is this a change event?

return
true if this is a change event.

return typ == BEAN_CHANGED;
public booleanisRemoveEvent()
Is this a remove event?

return
true if this is a remove event.

return typ == BEAN_REMOVED;
public voidsetChangeEvent(java.beans.PropertyChangeEvent pce)

       changeEvent = pce;