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 Collection |
children
The children that were added or removed.
|
propagatedFromsource| Constructor and Description |
|---|
BeanContextMembershipEvent(BeanContext context,
Collection children)
Create a new membership event.
|
BeanContextMembershipEvent(BeanContext context,
Object[] children)
Create a new membership event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object child)
Tell whether the
Object is one of the children added or removed. |
Iterator |
iterator()
An iterator that will step through all the children.
|
int |
size()
The number of children removed or added.
|
Object[] |
toArray()
An array of the children.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromgetSource, toStringprotected Collection children
public BeanContextMembershipEvent(BeanContext context, Collection children)
context - the event source.children - the children added to or removed from the source.public BeanContextMembershipEvent(BeanContext context, Object[] children)
context - the event source.children - the children added to or removed from the source.