public class QClassLoader extends java.net.URLClassLoader implements QClassLoaderMBean, java.io.FileFilter
Constructor and Description |
---|
QClassLoader(javax.management.MBeanServer server,
java.io.File libDir,
javax.management.ObjectName loaderName,
java.lang.ClassLoader mainClassLoader) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f) |
void |
addURL(java.lang.String url) |
void |
forceNewClassLoaderOnNextScan() |
boolean |
isModified() |
QClassLoader |
scan(boolean forceNewClassLoader) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public QClassLoader(javax.management.MBeanServer server, java.io.File libDir, javax.management.ObjectName loaderName, java.lang.ClassLoader mainClassLoader)
public void addURL(java.lang.String url) throws java.net.MalformedURLException
addURL
in interface QClassLoaderMBean
java.net.MalformedURLException
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
public boolean isModified()
public QClassLoader scan(boolean forceNewClassLoader) throws javax.management.InstanceAlreadyExistsException, javax.management.InstanceNotFoundException, javax.management.NotCompliantMBeanException, javax.management.MBeanRegistrationException
javax.management.InstanceAlreadyExistsException
javax.management.InstanceNotFoundException
javax.management.NotCompliantMBeanException
javax.management.MBeanRegistrationException
public void forceNewClassLoaderOnNextScan()