Java Platform 1.2

java.beans.beancontext
Class BeanContextServiceRevokedEvent

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

public class BeanContextServiceRevokedEvent
extends BeanContextEvent

This event type is used by the BeanContextServicesListener in order to identify the service being revoked.

See Also:
Serialized Form

Field Summary
protected  Class serviceClass
          fields
 
Fields inherited from class java.beans.beancontext.BeanContextEvent
propagatedFrom
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BeanContextServiceRevokedEvent(BeanContextServices bcs, Class sc, boolean invalidate)
          construct a BeanContextServiceEvent
 
Method Summary
 Class getServiceClass()
          get the service class that is the subject of this notification
 BeanContextServices getSourceAsBeanContextServices()
          get the source as a reference of type BeanContextServices
 boolean isCurrentServiceInvalidNow()
          true if current service references are now invalidated and unusable.
 boolean isServiceClass(Class service)
          test service equality
 
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

serviceClass

protected Class serviceClass
fields
Constructor Detail

BeanContextServiceRevokedEvent

public BeanContextServiceRevokedEvent(BeanContextServices bcs,
                                      Class sc,
                                      boolean invalidate)
construct a BeanContextServiceEvent
Method Detail

getSourceAsBeanContextServices

public BeanContextServices getSourceAsBeanContextServices()
get the source as a reference of type BeanContextServices

getServiceClass

public Class getServiceClass()
get the service class that is the subject of this notification

isServiceClass

public boolean isServiceClass(Class service)
test service equality

isCurrentServiceInvalidNow

public boolean isCurrentServiceInvalidNow()
true if current service references are now invalidated and unusable.

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.