| java.lang.Object java.lang.ClassLoader com.anthonyeden.lib.util.CustomClassLoader
Constructor Summary | |
public | CustomClassLoader(String searchDirectory) Construct a new CustomClassLoader which searches for classes in the
given directory. | public | CustomClassLoader(String searchDirectory, ClassLoader parent) Construct a new CustomClassLoader which searches for classes in the parent
ClassLoader first and then in the given directory. | public | CustomClassLoader(File searchDirectory) Construct a new CustomClassLoader which searches for classes in the
given directory. | public | CustomClassLoader(File searchDirectory, ClassLoader parent) Construct a new CustomClassLoader which searches for classes in the parent
ClassLoader first and then in the given directory. |
CustomClassLoader | public CustomClassLoader(String searchDirectory)(Code) | | Construct a new CustomClassLoader which searches for classes in the
given directory.
Parameters: searchDirectory - The root directory where classes may be found |
CustomClassLoader | public CustomClassLoader(String searchDirectory, ClassLoader parent)(Code) | | Construct a new CustomClassLoader which searches for classes in the parent
ClassLoader first and then in the given directory.
Parameters: searchDirectory - The root directory where classes may be found Parameters: parent - The parent ClassLoader |
CustomClassLoader | public CustomClassLoader(File searchDirectory)(Code) | | Construct a new CustomClassLoader which searches for classes in the
given directory.
Parameters: searchDirectory - The root directory where classes may be found |
CustomClassLoader | public CustomClassLoader(File searchDirectory, ClassLoader parent)(Code) | | Construct a new CustomClassLoader which searches for classes in the parent
ClassLoader first and then in the given directory.
Parameters: searchDirectory - The root directory where classes may be found Parameters: parent - The parent ClassLoader |
findResource | public URL findResource(String name)(Code) | | Find the resource URL with the given name. If the resource URL
cannot be found then this method returns null.
Parameters: name - The resource name The URL |
getSearchDirectory | public File getSearchDirectory()(Code) | | Get the directory which is searched for class files.
The search directory |
setSearchDirectory | public void setSearchDirectory(File searchDirectory)(Code) | | Set the directory which is searched for class files.
Parameters: searchDirectory - The new search directory |
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)
|
|
|