java.lang.Object
java.util.EventObject
java.beans.beancontext.BeanContextEvent
java.beans.beancontext.BeanContextServiceRevokedEvent
- All Implemented Interfaces:
- Serializable
 This event type is used by the
 BeanContextServiceRevokedListener in order to
 identify the service being revoked.
 
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Class<?>AClassreference to the service that is being revoked.Fields declared in class java.beans.beancontext.BeanContextEventpropagatedFromFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionBeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate) Construct aBeanContextServiceEvent.
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>Gets the service class that is the subject of this notificationGets the source as a reference of typeBeanContextServicesbooleanReports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.booleanisServiceClass(Class<?> service) Checks this event to determine whether or not the service being revoked is of a particular class.Methods declared in class java.beans.beancontext.BeanContextEventgetBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromMethods declared in class java.util.EventObjectgetSource, toString
- 
Field Details- 
serviceClassAClassreference to the service that is being revoked.
 
- 
- 
Constructor Details- 
BeanContextServiceRevokedEventConstruct aBeanContextServiceEvent.- Parameters:
- bcs- the- BeanContextServicesfrom which this service is being revoked
- sc- the service that is being revoked
- invalidate-- truefor immediate revocation
 
 
- 
- 
Method Details- 
getSourceAsBeanContextServicesGets the source as a reference of typeBeanContextServices- Returns:
- the BeanContextServicesfrom which this service is being revoked
 
- 
getServiceClassGets the service class that is the subject of this notification- Returns:
- A Classreference to the service that is being revoked
 
- 
isServiceClassChecks this event to determine whether or not the service being revoked is of a particular class.- Parameters:
- service- the service of interest (should be non-null)
- Returns:
- trueif the service being revoked is of the same class as the specified service
 
- 
isCurrentServiceInvalidNowpublic boolean isCurrentServiceInvalidNow()Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.- Returns:
- trueif current service is being forcibly revoked
 
 
-