java.beans.beancontext
Class BeanContextServiceRevokedEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.beans.beancontext.BeanContextEvent
|
+--java.beans.beancontext.BeanContextServiceRevokedEvent
Event fired when services are revoked from a BeanContextServices
.
Since:Author:See Also:
serviceClass
protected Class serviceClass
The Class
representing the service which is now
available.
BeanContextServiceRevokedEvent
public BeanContextServiceRevokedEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass, boolean revokeNow)
Create a new service revoked event.
Parameters:
getServiceClass
public Class getServiceClass()
Get the revoked service class.
Returns:
getSourceAsBeanContextServices
public BeanContextServices getSourceAsBeanContextServices()
Get the BeanContextServices
through which the service was available.
Returns:
- the
BeanContextServices
through which the
service was available.
isCurrentServiceInvalidNow
public boolean isCurrentServiceInvalidNow()
Tell whether current instances of the revoked service are usable or not.
This is determined by whether the service was revoked
immediately.
Returns:
- whether current instances of the revoked service are
usable.
isServiceClass
public boolean isServiceClass(java.lang.Class c)
Tell whether the revoked service class is the same as the specified class.
Identical to getServiceClass().equals(c)
.
Parameters:
Returns:
- whether the clases are equal.
BeanContextServices
.