src/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java
Print this page
*** 1218,1228 ****
Object resource = getResource(instance);
if (!(resource instanceof NotificationListener)) {
throw new RuntimeOperationsException(new
IllegalArgumentException(listener.getCanonicalName()),
"The MBean " + listener.getCanonicalName() +
! "does not implement the NotificationListener interface") ;
}
// ----------------
// Add a listener on an MBean
// ----------------
--- 1218,1228 ----
Object resource = getResource(instance);
if (!(resource instanceof NotificationListener)) {
throw new RuntimeOperationsException(new
IllegalArgumentException(listener.getCanonicalName()),
"The MBean " + listener.getCanonicalName() +
! " does not implement the NotificationListener interface") ;
}
// ----------------
// Add a listener on an MBean
// ----------------