|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.beans.beancontext.BeanContextEvent
java.beans.beancontext.BeanContextServiceRevokedEvent
public class BeanContextServiceRevokedEvent
Event fired when services are revoked from a BeanContextServices
.
BeanContextServiceRevokedListener
,
Serialized FormField Summary | |
---|---|
protected Class |
serviceClass
The Class representing the service which is now
available. |
Fields inherited from class java.beans.beancontext.BeanContextEvent |
---|
propagatedFrom |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
BeanContextServiceRevokedEvent(BeanContextServices services,
Class serviceClass,
boolean revokeNow)
Create a new service revoked event. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.beans.beancontext.BeanContextEvent |
---|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Class serviceClass
Class
representing the service which is now
available.
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |