APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans.beancontext

public Class BeanContextMembershipEvent

extends BeanContextEvent
Class Inheritance
Annotations
@SuppressWarnings:removal
@Deprecated
since:23
forRemoval:true
Imports
java.io.Serial, java.util.Arrays, .Collection, .Iterator

Deprecated

for removal since 23.

A 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.
Author
Laurence P. G. Cable
Since
1.2
See Also
java.beans.beancontext.BeanContext, java.beans.beancontext.BeanContextEvent, java.beans.beancontext.BeanContextMembershipListener

Field Summary

Modifier and TypeField and Description
protected Collection<E>
children

The list of children affected by this event notification.

private static final long
serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.
Inherited from java.beans.beancontext.BeanContextEvent:
propagatedFrom

Constructor Summary

AccessConstructor 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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if affected, false if not
contains
(Object
the object to check for being affected
child
)

Is the child specified affected by the event?

public Iterator<E>

Returns:

the array of children effected
iterator
()

Gets the array of children affected by this event.

public int

Returns:

the number of children affected by the notification
size
()

Gets the number of children affected by the notification.

public Object[]

Returns:

the array of children affected
toArray
()

Gets the array of children affected by this event.

Inherited from java.beans.beancontext.BeanContextEvent:
getBeanContextgetPropagatedFromisPropagatedsetPropagatedFrom

Field Detail

childrenback to summary
protected Collection<E> children

The list of children affected by this event notification.

Annotations
@SuppressWarnings:rawtypes, serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial

Constructor Detail

BeanContextMembershipEventback to summary
public BeanContextMembershipEvent(BeanContext bc, Collection<E> changes)

References Deprecated

BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Construct a BeanContextMembershipEvent

Parameters
bc:BeanContext

The BeanContext source

changes:Collection<E>

The Children affected

Annotations
@SuppressWarnings:rawtypes
Exceptions
NullPointerException:
if changes is null
BeanContextMembershipEventback to summary
public BeanContextMembershipEvent(BeanContext bc, Object[] changes)

References Deprecated

BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Construct a BeanContextMembershipEvent

Parameters
bc:BeanContext

The BeanContext source

changes:Object[]

The Children effected

Exceptions
NullPointerException:
if changes associated with this event are null.

Method Detail

containsback to summary
public boolean contains(Object child)

Is the child specified affected by the event?

Parameters
child:Object

the object to check for being affected

Returns:boolean

true if affected, false if not

iteratorback to summary
public Iterator<E> iterator()

Gets the array of children affected by this event.

Returns:Iterator<E>

the array of children effected

Annotations
@SuppressWarnings:rawtypes
sizeback to summary
public int size()

Gets the number of children affected by the notification.

Returns:int

the number of children affected by the notification

toArrayback to summary
public Object[] toArray()

Gets the array of children affected by this event.

Returns:Object[]

the array of children affected