|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
net.sf.jasperreports.engine.util.JRClassLoader
public class JRClassLoader
Constructor Summary | |
---|---|
protected |
JRClassLoader()
|
protected |
JRClassLoader(java.lang.ClassLoader parent)
|
Method Summary | |
---|---|
static java.lang.String |
getClassRealName(java.lang.String className)
|
protected java.security.ProtectionDomain |
getProtectionDomain()
|
protected static ProtectionDomainFactory |
getProtectionDomainFactory()
|
protected java.lang.Class |
loadClass(java.lang.String className,
byte[] bytecodes)
|
protected java.lang.Class |
loadClass(java.lang.String className,
java.io.File file)
Deprecated. To be removed in future versions. |
static java.lang.Class |
loadClassForName(java.lang.String className)
|
static java.lang.Class |
loadClassForRealName(java.lang.String className)
|
static java.lang.Class |
loadClassFromBytes(java.lang.String className,
byte[] bytecodes)
|
static java.lang.Class |
loadClassFromFile(java.lang.String className,
java.io.File file)
Deprecated. To be removed in future versions. |
static void |
setProtectionDomain(java.security.ProtectionDomain protectionDomain)
Sets the protection to be used for classes loaded via the loadClassFromBytes method. |
static void |
setProtectionDomainFactory(ProtectionDomainFactory protectionDomainFactory)
Sets a protection domain factory to be used for creating protection domains for the classes loaded by instances of this class. |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JRClassLoader()
protected JRClassLoader(java.lang.ClassLoader parent)
Method Detail |
---|
protected static ProtectionDomainFactory getProtectionDomainFactory()
public static void setProtectionDomain(java.security.ProtectionDomain protectionDomain)
loadClassFromBytes
method.
By default, the protection domain of this class is used for the loaded classes.
protectionDomain
- the protection domain to be usedloadClassFromBytes(String, byte[])
public static void setProtectionDomainFactory(ProtectionDomainFactory protectionDomainFactory)
For every instance of this class,
getProtectionDomain
is called
and the resulting protection domain is used when loading classes through the newly created
classloader.
protectionDomainFactory
- the protection domain factory.ProtectionDomainFactory.getProtectionDomain(ClassLoader)
public static java.lang.Class loadClassForName(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.lang.Class loadClassForRealName(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static java.lang.Class loadClassFromFile(java.lang.String className, java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.Class loadClassFromBytes(java.lang.String className, byte[] bytecodes)
protected java.lang.Class loadClass(java.lang.String className, java.io.File file) throws java.io.IOException
java.io.IOException
protected java.security.ProtectionDomain getProtectionDomain()
protected java.lang.Class loadClass(java.lang.String className, byte[] bytecodes)
public static java.lang.String getClassRealName(java.lang.String className)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |