public class BeanContextServiceRevokedEvent extends BeanContextEvent
BeanContextServices.BeanContextServiceRevokedListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Class |
serviceClass
The
Class representing the service which is now
available. |
propagatedFromsource| Constructor and Description |
|---|
BeanContextServiceRevokedEvent(BeanContextServices services,
Class serviceClass,
boolean revokeNow)
Create a new service revoked event.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getServiceClass()
Get the revoked service class.
|
BeanContextServices |
getSourceAsBeanContextServices()
Get the
BeanContextServices through which the service was available. |
boolean |
isCurrentServiceInvalidNow()
Tell whether current instances of the revoked service are usable or not.
|
boolean |
isServiceClass(Class c)
Tell whether the revoked service class is the same as the specified class.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromgetSource, toStringprotected Class serviceClass
Class representing the service which is now
available.public BeanContextServiceRevokedEvent(BeanContextServices services, Class serviceClass, boolean revokeNow)
services - the BeanContextServices through
which the service was available. This is also the source
of the event.serviceClass - the service class that is now revoked.revokeNow - whether the revocation is immediate for all
classes or just a suggestion.public Class getServiceClass()
public boolean isServiceClass(Class c)
getServiceClass().equals(c).c - the class to compare.public BeanContextServices getSourceAsBeanContextServices()
BeanContextServices through which the service was available.BeanContextServices through which the
service was available.public boolean isCurrentServiceInvalidNow()