src/share/classes/java/beans/beancontext/BeanContextServiceRevokedEvent.java
Print this page
*** 44,54 ****
* @param bcs the <code>BeanContextServices</code>
* from which this service is being revoked
* @param sc the service that is being revoked
* @param invalidate <code>true</code> for immediate revocation
*/
! public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class sc, boolean invalidate) {
super((BeanContext)bcs);
serviceClass = sc;
invalidateRefs = invalidate;
}
--- 44,54 ----
* @param bcs the <code>BeanContextServices</code>
* from which this service is being revoked
* @param sc the service that is being revoked
* @param invalidate <code>true</code> for immediate revocation
*/
! public BeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate) {
super((BeanContext)bcs);
serviceClass = sc;
invalidateRefs = invalidate;
}
*** 65,84 ****
/**
* Gets the service class that is the subject of this notification
* @return A <code>Class</code> reference to the
* service that is being revoked
*/
! public Class getServiceClass() { return serviceClass; }
/**
* Checks this event to determine whether or not
* the service being revoked is of a particular class.
* @param service the service of interest (should be non-null)
* @return <code>true</code> if the service being revoked is of the
* same class as the specified service
*/
! public boolean isServiceClass(Class service) {
return serviceClass.equals(service);
}
/**
* Reports if the current service is being forcibly revoked,
--- 65,84 ----
/**
* Gets the service class that is the subject of this notification
* @return A <code>Class</code> reference to the
* service that is being revoked
*/
! public Class<?> getServiceClass() { return serviceClass; }
/**
* Checks this event to determine whether or not
* the service being revoked is of a particular class.
* @param service the service of interest (should be non-null)
* @return <code>true</code> if the service being revoked is of the
* same class as the specified service
*/
! public boolean isServiceClass(Class<?> service) {
return serviceClass.equals(service);
}
/**
* Reports if the current service is being forcibly revoked,
*** 92,99 ****
*/
/**
* A <code>Class</code> reference to the service that is being revoked.
*/
! protected Class serviceClass;
private boolean invalidateRefs;
}
--- 92,99 ----
*/
/**
* A <code>Class</code> reference to the service that is being revoked.
*/
! protected Class<?> serviceClass;
private boolean invalidateRefs;
}