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 and Description |
|---|---|
protected Class |
serviceClass
A
Class reference to the service that is being revoked.
|
propagatedFromsource| Constructor and Description |
|---|
BeanContextServiceRevokedEvent(BeanContextServices
Construct a
BeanContextServiceEvent.
|
| Modifier and Type | Method and 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(Class
Checks this event to determine whether or not the service being revoked is of a particular class.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromgetSource, toStringprotected ClassserviceClass
Class reference to the service that is being revoked.
public BeanContextServiceRevokedEvent(BeanContextServicesbcs, Class sc, boolean invalidate)
BeanContextServiceEvent.
bcs - the
BeanContextServices from which this service is being revoked
sc - the service that is being revoked
invalidate -
true for immediate revocation
public BeanContextServicesgetSourceAsBeanContextServices()
BeanContextServices
BeanContextServices from which this service is being revoked
public ClassgetServiceClass()
Class reference to the service that is being revoked
public boolean isServiceClass(Classservice)
service - the service of interest (should be non-null)
true if the service being revoked is of the same class as the specified service
public boolean isCurrentServiceInvalidNow()
true if current service is being forcibly revoked