Deprecated
for removal since 23.
This event type is used by the
BeanContextServiceRevokedListener in order to
identify the service being revoked.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final long | serialVersionUID
Hides java. |
| protected Class | serviceClass
A |
| Access | Constructor and Description |
|---|---|
| public | BeanContextServiceRevokedEvent(BeanContextServices
the bcs, Class<?> BeanContextServices
from which this service is being revokedthe service that is being revoked sc, boolean true for immediate revocation
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: AClass reference to the
service that is being revokedGets the service class that is the subject of this notification |
| public BeanContextServices | Returns: theBeanContextServices from which
this service is being revoked
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the source as a reference of type |
| public boolean | Returns: true if current service is being forcibly revokedReports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable. |
| public boolean | Returns: true if the service being revoked is of the
same class as the specified servicethe service of interest (should be non-null) service)Checks this event to determine whether or not the service being revoked is of a particular class. |
| invalidateRefs | back to summary |
|---|---|
| private boolean invalidateRefs | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.7 for interoperability. | |
| serviceClass | back to summary |
|---|---|
| protected Class<?> serviceClass A | |
| BeanContextServiceRevokedEvent | back to summary |
|---|---|
| public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate)
References Deprecated
See corresponding docs for further information. Construct a
| |
| getServiceClass | back to summary |
|---|---|
| public Class Gets the service class that is the subject of this notification
| |
| getSourceAsBeanContextServices | back to summary |
|---|---|
| public BeanContextServices getSourceAsBeanContextServices()
References Deprecated
See corresponding docs for further information. Gets the source as a reference of type
| |
| isCurrentServiceInvalidNow | back to summary |
|---|---|
| public boolean isCurrentServiceInvalidNow() Reports if the current service is being forcibly revoked, in which case the references are now invalidated and unusable.
| |
| isServiceClass | back to summary |
|---|---|
| public boolean isServiceClass(Class<?> service) Checks this event to determine whether or not the service being revoked is of a particular class.
| |