java.beans.beancontext
public class BeanContextServiceRevokedEvent extends BeanContextEvent
BeanContextServices
.
Since: JDK1.2
See Also: BeanContextServiceRevokedListener
Field Summary | |
---|---|
protected Class | serviceClass
The Class representing the service which is now
available. |
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.
|
Class
representing the service which is now
available.Parameters: 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.
Returns: the service class.
BeanContextServices
through which the service was available.Returns: the BeanContextServices
through which the
service was available.
Returns: whether current instances of the revoked service are usable.
getServiceClass().equals(c)
.Parameters: c the class to compare.
Returns: whether the clases are equal.