| java.lang.Object java.lang.ClassLoader com.adventnet.jmx.DefaultClassLoader
DefaultClassLoader | public class DefaultClassLoader extends ClassLoader (Code) | | A simple test class loader capable of loading from multiple sources,
such as local files or a URL. Must be subclassed and the abstract method
loadClassBytes() implemented to provide the preferred source.
|
Method Summary | |
protected String | formatClassName(String className) | public Class | loadClass(String className) This is a simple version for external clients since they
will always want the class resolved before it is returned
to them. | public synchronized Class | loadClass(String className, boolean resolveIt) | public void | setClassNameReplacementChar(char replacement) This optional call allows a class name such as "COM.test.Hello" to be
changed to "COM_test_Hello", which is useful for storing classes from
different packages in the same retrival directory. |
monitorOn | protected boolean monitorOn(Code) | | |
sourceMonitorOn | protected boolean sourceMonitorOn(Code) | | |
DefaultClassLoader | public DefaultClassLoader()(Code) | | |
loadClass | public Class loadClass(String className) throws ClassNotFoundException(Code) | | This is a simple version for external clients since they
will always want the class resolved before it is returned
to them.
|
setClassNameReplacementChar | public void setClassNameReplacementChar(char replacement)(Code) | | This optional call allows a class name such as "COM.test.Hello" to be
changed to "COM_test_Hello", which is useful for storing classes from
different packages in the same retrival directory.
In the above example the char would be '_'.
|
Methods inherited from java.lang.ClassLoader | public synchronized void clearAssertionStatus()(Code)(Java Doc) final protected Class> defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc) protected Class> findClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected String findLibrary(String libname)(Code)(Java Doc) final protected Class> findLoadedClass(String name)(Code)(Java Doc) protected URL findResource(String name)(Code)(Java Doc) protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc) final protected Class> findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected Package getPackage(String name)(Code)(Java Doc) protected Package[] getPackages()(Code)(Java Doc) final public ClassLoader getParent()(Code)(Java Doc) public URL getResource(String name)(Code)(Java Doc) public InputStream getResourceAsStream(String name)(Code)(Java Doc) public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc) public static ClassLoader getSystemClassLoader()(Code)(Java Doc) public static URL getSystemResource(String name)(Code)(Java Doc) public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc) public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc) public Class> loadClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc) final protected void resolveClass(Class> c)(Code)(Java Doc) public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc) public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc) public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc) final protected void setSigners(Class> c, Object[] signers)(Code)(Java Doc)
|
|
|