|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
railo.commons.lang.ExtendableClassLoader
railo.commons.lang.PhysicalClassLoader
public final class PhysicalClassLoader
Directory ClassLoader
Constructor Summary | |
---|---|
PhysicalClassLoader(Resource directory)
Constructor of the class |
|
PhysicalClassLoader(Resource directory,
ClassLoader parent)
Constructor of the class |
Method Summary | |
---|---|
Resource |
_getResource(String name)
returns matching File Object or null if file not exust |
int |
count()
|
PhysicalClassLoader |
getCustomClassLoader(Resource[] resources,
boolean reload)
|
Resource |
getDirectory()
|
URL |
getResource(String name)
|
InputStream |
getResourceAsStream(String name)
|
boolean |
hasClass(String className)
|
boolean |
hasResource(String name)
|
boolean |
isClassLoaded(String className)
|
static long |
lastModified(Resource res,
long defaultValue)
|
Class<?> |
loadClass(String name)
Loads the class with the specified name. |
Class<?> |
loadClass(String name,
byte[] barr)
allow to define a new Class with help of the bytecode passed to the method |
long |
sizeOf()
return the size of the object |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhysicalClassLoader(Resource directory) throws IOException
directory
-
IOException
public PhysicalClassLoader(Resource directory, ClassLoader parent) throws IOException
directory
- parent
-
IOException
Method Detail |
---|
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass(String, boolean)
method. It is called by the Java virtual machine to resolve class
references. Calling this method is equivalent to calling
loadClass(name, false)
.
loadClass
in class ClassLoader
name
- the name of the class
Class
object
ClassNotFoundException
- if the class was not foundpublic static long lastModified(Resource res, long defaultValue)
public Class<?> loadClass(String name, byte[] barr)
ExtendableClassLoader
loadClass
in class ExtendableClassLoader
public URL getResource(String name)
getResource
in class ClassLoader
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
public Resource _getResource(String name)
name
-
public boolean hasClass(String className)
public boolean isClassLoaded(String className)
public boolean hasResource(String name)
public Resource getDirectory()
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
public int count()
public PhysicalClassLoader getCustomClassLoader(Resource[] resources, boolean reload) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |