Deprecated
for removal since 23.
BeanContextMembershipEvent encapsulates
the list of children added to, or removed from,
the membership of a particular BeanContext.
An instance of this event is fired whenever a successful
add(), remove(), retainAll(), removeAll(), or clear() is
invoked on a given BeanContext instance.
Objects interested in receiving events of this type must
implement the BeanContextMembershipListener
interface, and must register their intent via the
BeanContext's
addBeanContextMembershipListener(BeanContextMembershipListener bcml)
method.
java.beans.beancontext.BeanContext , java.beans.beancontext.BeanContextEvent , java.beans.beancontext.BeanContextMembershipListener
| Modifier and Type | Field and Description |
|---|---|
| protected Collection | children
The list of children affected by this event notification. |
| private static final long | serialVersionUID
Hides java. |
| Access | Constructor and Description |
|---|---|
| public | BeanContextMembershipEvent(BeanContext
The BeanContext source bc, Collection<E> The Children affected changes)
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a BeanContextMembershipEvent |
| public | BeanContextMembershipEvent(BeanContext
The BeanContext source bc, Object[] The Children effected changes)
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a BeanContextMembershipEvent |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Iterator | |
| public int | Returns: the number of children affected by the notificationGets the number of children affected by the notification. |
| public Object[] |
| children | back to summary |
|---|---|
| protected Collection<E> children The list of children affected by this event notification.
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.7 for interoperability. | |
| BeanContextMembershipEvent | back to summary |
|---|---|
| public BeanContextMembershipEvent(BeanContext bc, Collection<E> changes)
References Deprecated
See corresponding docs for further information. Construct a BeanContextMembershipEvent
| |
| BeanContextMembershipEvent | back to summary |
|---|---|
| public BeanContextMembershipEvent(BeanContext bc, Object[] changes)
References Deprecated
See corresponding docs for further information. Construct a BeanContextMembershipEvent
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object child) Is the child specified affected by the event?
| |
| iterator | back to summary |
|---|---|
| public Iterator Gets the array of children affected by this event.
| |
| size | back to summary |
|---|---|
| public int size() Gets the number of children affected by the notification.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Gets the array of children affected by this event.
| |