getNextSequenceNumber(), className); removeNotifications.add(n); Notification msg = new Notification(CLASSLOADER_REMOVED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference(cl));
getNextSequenceNumber(), className); removeNotifications.add(n); Notification msg = new Notification(CLASSLOADER_REMOVED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference(cl));
/** * This method provides an mbean-accessible way to add a * UnifiedClassloader, and sends a notification when it is added. * * @param ucl an <code>UnifiedClassLoader</code> value * @return a <code>LoaderRepository</code> value * * @jmx.managed-operation */ public LoaderRepository registerClassLoader(RepositoryClassLoader ucl) { addClassLoader(ucl); if (NOTIFICATION_MODE == LEGACY_MODE || NOTIFICATION_MODE == WEAK_REFERENCE_MODE) { Notification msg = new Notification(CLASSLOADER_ADDED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference<ClassLoader>(ucl)); else msg.setUserData(ucl); broadcaster.sendNotification(msg); } return this; }
/** * This method provides an mbean-accessible way to add a * UnifiedClassloader, and sends a notification when it is added. * * @param ucl an <code>UnifiedClassLoader</code> value * @return a <code>LoaderRepository</code> value * * @jmx.managed-operation */ public LoaderRepository registerClassLoader(RepositoryClassLoader ucl) { addClassLoader(ucl); if (NOTIFICATION_MODE == LEGACY_MODE || NOTIFICATION_MODE == WEAK_REFERENCE_MODE) { Notification msg = new Notification(CLASSLOADER_ADDED, this, getNextSequenceNumber()); if (NOTIFICATION_MODE == WEAK_REFERENCE_MODE) msg.setUserData(new WeakReference(ucl)); else msg.setUserData(ucl); broadcaster.sendNotification(msg); } return this; }