public class BeanContextServiceRevokedEvent extends BeanContextEvent
This event type is used by the
BeanContextServiceRevokedListener
in order to
identify the service being revoked.
Modifier and Type | Field and Description |
---|---|
protected Class |
serviceClass
A
Class reference to the service that is being revoked. |
propagatedFrom
source
Constructor and Description |
---|
BeanContextServiceRevokedEvent(BeanContextServices bcs,
Class sc,
boolean invalidate)
Construct a
BeanContextServiceEvent . |
Modifier and Type | Method and Description |
---|---|
Class |
getServiceClass()
Gets the service class that is the subject of this notification
|
BeanContextServices |
getSourceAsBeanContextServices()
Gets the source as a reference of type
BeanContextServices |
boolean |
isCurrentServiceInvalidNow()
Reports if the current service is being forcibly revoked,
in which case the references are now invalidated and unusable.
|
boolean |
isServiceClass(Class service)
Checks this event to determine whether or not
the service being revoked is of a particular class.
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom
getSource, toString
protected Class serviceClass
Class
reference to the service that is being revoked.public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class sc, boolean invalidate)
BeanContextServiceEvent
.bcs
- the BeanContextServices
from which this service is being revokedsc
- the service that is being revokedinvalidate
- true
for immediate revocationpublic BeanContextServices getSourceAsBeanContextServices()
BeanContextServices
BeanContextServices
from which
this service is being revokedpublic Class getServiceClass()
Class
reference to the
service that is being revokedpublic boolean isServiceClass(Class service)
service
- the service of interest (should be non-null)true
if the service being revoked is of the
same class as the specified servicepublic boolean isCurrentServiceInvalidNow()
true
if current service is being forcibly revoked Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.