Top Description Fields Constructors Methods
java.beans.beancontext

public abstract Class BeanContextEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
java.beans.beancontext.BeanContextMembershipEvent, java.beans.beancontext.BeanContextServiceAvailableEvent, java.beans.beancontext.BeanContextServiceRevokedEvent
Annotations
@SuppressWarnings:removal
@Deprecated
since:23
forRemoval:true
Imports
java.io.Serial, java.util.EventObject

Deprecated

for removal since 23.

BeanContextEvent is the abstract root event class for all events emitted from, and pertaining to the semantics of, a BeanContext. This class introduces a mechanism to allow the propagation of BeanContextEvent subclasses through a hierarchy of BeanContexts. The setPropagatedFrom() and getPropagatedFrom() methods allow a BeanContext to identify itself as the source of a propagated event.

Author
Laurence P. G. Cable
Since
1.2
See Also
java.beans.beancontext.BeanContext

Field Summary

Modifier and TypeField and Description
protected BeanContext
propagatedFrom

References Deprecated BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
The BeanContext from which this event was propagated
private static final long
serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
protected
BeanContextEvent(BeanContext
The BeanContext source
bc
)
References Deprecated BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

Construct a BeanContextEvent

Method Summary

Modifier and TypeMethod and Description
public BeanContext

Returns:

the BeanContext associated with this event.
getBeanContext
()
References Deprecated BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

Gets the BeanContext associated with this event.

public synchronized BeanContext

Returns:

the BeanContext from which this event was propagated
getPropagatedFrom
()
References Deprecated BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

Gets the BeanContext from which this event was propagated.

public synchronized boolean

Returns:

true if propagated, false if not
isPropagated
()

Reports whether or not this event is propagated from some other BeanContext.

public synchronized void
setPropagatedFrom(BeanContext
the BeanContext from which this event was propagated
bc
)
References Deprecated BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.

Sets the BeanContext from which this event was propagated.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

propagatedFromback to summary
protected BeanContext propagatedFrom

References Deprecated

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

See corresponding docs for further information.

The BeanContext from which this event was propagated

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

Hides java.util.EventObject.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial

Constructor Detail

BeanContextEventback to summary
protected BeanContextEvent(BeanContext bc)

References Deprecated

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

See corresponding docs for further information.

Construct a BeanContextEvent

Parameters
bc:BeanContext

The BeanContext source

Method Detail

getBeanContextback to summary
public BeanContext getBeanContext()

References Deprecated

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

See corresponding docs for further information.

Gets the BeanContext associated with this event.

Returns:BeanContext

the BeanContext associated with this event.

getPropagatedFromback to summary
public synchronized BeanContext getPropagatedFrom()

References Deprecated

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

See corresponding docs for further information.

Gets the BeanContext from which this event was propagated.

Returns:BeanContext

the BeanContext from which this event was propagated

isPropagatedback to summary
public synchronized boolean isPropagated()

Reports whether or not this event is propagated from some other BeanContext.

Returns:boolean

true if propagated, false if not

setPropagatedFromback to summary
public synchronized void setPropagatedFrom(BeanContext bc)

References Deprecated

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

See corresponding docs for further information.

Sets the BeanContext from which this event was propagated.

Parameters
bc:BeanContext

the BeanContext from which this event was propagated