Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans.beancontext

Class BeanContextServiceRevokedEvent

java.lang.Object
|
+--java.util.EventObject
   |
   +--java.beans.beancontext.BeanContextEvent
      |
      +--java.beans.beancontext.BeanContextServiceRevokedEvent


public class BeanContextServiceRevokedEvent

extends BeanContextEvent

Event fired when services are revoked from a BeanContextServices.

Since:Author:See Also:

Field Summary

java.lang.ClassserviceClass

The Class representing the service which is now available.

Constructor Summary

BeanContextServiceRevokedEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass, boolean revokeNow)

Create a new service revoked event.

Method Summary

java.lang.ClassgetServiceClass()

Get the revoked service class.
java.beans.beancontext.BeanContextServicesgetSourceAsBeanContextServices()

Get the BeanContextServices through which the service was available.
booleanisCurrentServiceInvalidNow()

Tell whether current instances of the revoked service are usable or not.
booleanisServiceClass(java.lang.Class c)

Tell whether the revoked service class is the same as the specified class.

Field Details

serviceClass

protected Class serviceClass

The Class representing the service which is now available.


Constructor Details

BeanContextServiceRevokedEvent

public BeanContextServiceRevokedEvent(java.beans.beancontext.BeanContextServices services, java.lang.Class serviceClass, boolean revokeNow)

Create a new service revoked event.

Parameters:


Method Details

getServiceClass

public Class getServiceClass()

Get the revoked service class.

Returns:


getSourceAsBeanContextServices

public BeanContextServices getSourceAsBeanContextServices()

Get the BeanContextServices through which the service was available.

Returns:


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:


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: