public final class PCLBlock extends ExtendableClassLoader implements Sizeable
Constructor and Description |
---|
PCLBlock(Resource directory,
ClassLoader parent)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
Resource |
_getResource(String name)
returns matching File Object or null if file not exust
|
int |
count() |
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
|
clearAssertionStatus, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public PCLBlock(Resource directory, ClassLoader parent)
directory
- parent
- IOException
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 classClass
objectClassNotFoundException
- 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 isClassLoaded(String className)
public boolean hasResource(String name)
public Resource getDirectory()
public long sizeOf()
Sizeable
public int count()
Copyright © 2015 Lucee