| java.lang.Object java.lang.ClassLoader it.businesslogic.ireport.ReportClassLoader
ReportClassLoader | public class ReportClassLoader extends java.lang.ClassLoader (Code) | | This special class loader is used when running a report.
The main feature is that this classloader reload Scriptlet class every
time the class is needed.
This class is based on JUnit test case class loader.
author: Administrator |
ReportClassLoader | public ReportClassLoader()(Code) | | Constructs a ReloadableTestClassLoader. It tokenizes the value of
reportPath and adds it and any sub-paths to a list.
Paths are searched for tests. All other classes are loaded
by parent loaders, to which this classloader always delegates.
This ClassLoader never looks into or knows about the system classpath.
It should always refer to a path of repositories (jars or dirs)
not on the system classpath (as retrieved via
reportPath ).
Parameters: classPath - to scan and use for finding and reloading classes |
addNoRelodablePath | public void addNoRelodablePath(String path)(Code) | | Add a dir or a file (i.e. a jar or a zip) to the search path
|
clearCache | public void clearCache()(Code) | | |
rescanAdditionalClasspath | public void rescanAdditionalClasspath()(Code) | | Add to search paths list as no relodable jar/zip all new .jar,.zip not already in classpath
|
rescanLibDirectory | public void rescanLibDirectory()(Code) | | Add to search paths list as no relodable jar/zip all new .jar,.zip not already in classpath
|
setRelodablePaths | public void setRelodablePaths(String classPath)(Code) | | |
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)
|
|
|