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

public Class BeanContextServiceRevokedEvent

extends BeanContextEvent
Class Inheritance
Annotations
@SuppressWarnings:removal
@Deprecated
since:23
forRemoval:true
Imports
java.io.Serial

Deprecated

for removal since 23.

This event type is used by the BeanContextServiceRevokedListener in order to identify the service being revoked.

Field Summary

Modifier and TypeField and Description
private boolean
private static final long
serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.
protected Class<?>
serviceClass

A Class reference to the service that is being revoked.

Inherited from java.beans.beancontext.BeanContextEvent:
propagatedFrom

Constructor Summary

AccessConstructor and Description
public
BeanContextServiceRevokedEvent(BeanContextServices
the BeanContextServices from which this service is being revoked
bcs
,
Class<?>
the service that is being revoked
sc
,
boolean
true for immediate revocation
invalidate
)
References Deprecated BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

Construct a BeanContextServiceEvent.

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

A Class reference to the service that is being revoked
getServiceClass
()

Gets the service class that is the subject of this notification

public BeanContextServices

Returns:

the BeanContextServices from which this service is being revoked
getSourceAsBeanContextServices
()
References Deprecated BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.

Gets the source as a reference of type BeanContextServices

public boolean

Returns:

true if current service is being forcibly revoked
isCurrentServiceInvalidNow
()

Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.

public boolean

Returns:

true if the service being revoked is of the same class as the specified service
isServiceClass
(Class<?>
the service of interest (should be non-null)
service
)

Checks this event to determine whether or not the service being revoked is of a particular class.

Inherited from java.beans.beancontext.BeanContextEvent:
getBeanContextgetPropagatedFromisPropagatedsetPropagatedFrom

Field Detail

invalidateRefsback to summary
private boolean invalidateRefs
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.beans.beancontext.BeanContextEvent.serialVersionUID.

Use serialVersionUID from JDK 1.7 for interoperability.

Annotations
@Serial
serviceClassback to summary
protected Class<?> serviceClass

A Class reference to the service that is being revoked.

Constructor Detail

BeanContextServiceRevokedEventback to summary
public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate)

References Deprecated

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

See corresponding docs for further information.

Construct a BeanContextServiceEvent.

Parameters
bcs:BeanContextServices

the BeanContextServices from which this service is being revoked

sc:Class<?>

the service that is being revoked

invalidate:boolean

true for immediate revocation

Method Detail

getServiceClassback to summary
public Class<?> getServiceClass()

Gets the service class that is the subject of this notification

Returns:Class<?>

A Class reference to the service that is being revoked

getSourceAsBeanContextServicesback to summary
public BeanContextServices getSourceAsBeanContextServices()

References Deprecated

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

See corresponding docs for further information.

Gets the source as a reference of type BeanContextServices

Returns:BeanContextServices

the BeanContextServices from which this service is being revoked

isCurrentServiceInvalidNowback to summary
public boolean isCurrentServiceInvalidNow()

Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.

Returns:boolean

true if current service is being forcibly revoked

isServiceClassback to summary
public boolean isServiceClass(Class<?> service)

Checks this event to determine whether or not the service being revoked is of a particular class.

Parameters
service:Class<?>

the service of interest (should be non-null)

Returns:boolean

true if the service being revoked is of the same class as the specified service