A tagging interface for RealClassLoaders @author Adrian Brock @version $Revision: 1.1 $
214215216217218219220221222223224225
return; if (classLoader instanceof RealClassLoader == false) return; RealClassLoader jmxClassLoader = (RealClassLoader) classLoader; ObjectName name = jmxClassLoader.getObjectName(); if (mbeanServer.isRegistered(name)) return; mbeanServer.registerMBean(classLoader, name); }
236237238239240241242243244245246
return; if (classLoader instanceof RealClassLoader == false) return; RealClassLoader jmxClassLoader = (RealClassLoader) classLoader; ObjectName name = jmxClassLoader.getObjectName(); if (mbeanServer.isRegistered(name) == false) return; mbeanServer.unregisterMBean(name); }
153154155156157158159160161162163
if (cl == null) return defaultClassLoader; if (cl instanceof RealClassLoader) { RealClassLoader rcl = RealClassLoader.class.cast(cl); return rcl.getObjectName(); } return findLoaderName(cl.getParent()); }
327328329330331332333334335336337338339
{ // Has this classloader been undeployed? ClassLoader otherClassLoader = getClassLoader(result); if (otherClassLoader != null && otherClassLoader != this && otherClassLoader instanceof RealClassLoader) { RealClassLoader rcl = (RealClassLoader) otherClassLoader; // Ignore when undeployed if (rcl.isValid() == false) { if (trace) log.trace(this + " ignoring already loaded class from undeployed classloader " + ClassLoaderUtils.classToString(result)); result = null; }
343344345346347348349350351352353354355
330331332333334335336337338339340341342
317318319320321322323324325326327328
} if (candidate.getClassLoader() instanceof RealClassLoader) { //Sometimes the ClassLoader is a proxy for MBeanProxyExt?! RealClassLoader bcl = (RealClassLoader)candidate.getClassLoader(); URL foundUrl = bcl.getResourceLocally(resourceName); if (foundUrl != null) { if (url.equals(foundUrl)) { if (trace)
194195196197198199200201202203204205
216217218219220221222223224225226