public class BeanContextMembershipEvent extends BeanContextEvent
BeanContext.
Whether they were added or removed depends entirely on which method
of the listener interface was called.BeanContextMembershipListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection |
children
The children that were added or removed.
|
propagatedFrom| Constructor and Description |
|---|
BeanContextMembershipEvent(BeanContext context,
java.util.Collection children)
Create a new membership event.
|
BeanContextMembershipEvent(BeanContext context,
java.lang.Object[] children)
Create a new membership event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object child)
Tell whether the
Object is one of the children added or removed. |
java.util.Iterator |
iterator()
An iterator that will step through all the children.
|
int |
size()
The number of children removed or added.
|
java.lang.Object[] |
toArray()
An array of the children.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromprotected java.util.Collection children
public BeanContextMembershipEvent(BeanContext context, java.util.Collection children)
context - the event source.children - the children added to or removed from the source.public BeanContextMembershipEvent(BeanContext context, java.lang.Object[] children)
context - the event source.children - the children added to or removed from the source.public int size()
public java.util.Iterator iterator()
public java.lang.Object[] toArray()
public boolean contains(java.lang.Object child)
Object is one of the children added or removed.child - the child to check.Object is added or removed.