Serializable
public class BeanContextServiceRevokedEvent extends BeanContextEvent
This event type is used by the BeanContextServiceRevokedListener
in order to identify the service being revoked.
Modifier and Type | Field | Description |
---|---|---|
protected Class |
serviceClass |
A Class reference to the service that is being revoked. |
propagatedFrom
source
Constructor | Description |
---|---|
BeanContextServiceRevokedEvent |
Construct a BeanContextServiceEvent . |
Modifier and Type | Method | Description |
---|---|---|
Class |
getServiceClass() |
Gets the service class that is the subject of this notification |
BeanContextServices |
getSourceAsBeanContextServices() |
Gets the source as a reference of type BeanContextServices
|
boolean |
isCurrentServiceInvalidNow() |
Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable. |
boolean |
isServiceClass |
Checks this event to determine whether or not the service being revoked is of a particular class. |
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom
getSource, toString
protected Class<?> serviceClass
Class
reference to the service that is being revoked.public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate)
BeanContextServiceEvent
.bcs
- the BeanContextServices
from which this service is being revokedsc
- the service that is being revokedinvalidate
- true
for immediate revocationpublic BeanContextServices getSourceAsBeanContextServices()
BeanContextServices
BeanContextServices
from which this service is being revokedpublic Class<?> getServiceClass()
Class
reference to the service that is being revokedpublic boolean isServiceClass(Class<?> service)
service
- the service of interest (should be non-null)true
if the service being revoked is of the same class as the specified servicepublic boolean isCurrentServiceInvalidNow()
true
if current service is being forcibly revoked
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/beans/beancontext/BeanContextServiceRevokedEvent.html