| java.lang.Object java.lang.ClassLoader org.codehaus.janino.JavaSourceClassLoader org.codehaus.janino.CachingJavaSourceClassLoader
Constructor Summary | |
public | CachingJavaSourceClassLoader(ClassLoader parentClassLoader, File[] optionalSourcePath, String optionalCharacterEncoding, File cacheDirectory, EnumeratorSet debuggingInformation) See
CachingJavaSourceClassLoader.CachingJavaSourceClassLoader(ClassLoader,ResourceFinder,String,ResourceFinder,ResourceCreator,EnumeratorSet) . | public | CachingJavaSourceClassLoader(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String optionalCharacterEncoding, ResourceFinder classFileCacheResourceFinder, ResourceCreator classFileCacheResourceCreator, EnumeratorSet debuggingInformation) Notice that this class is thread-safe if and only if the
classFileCacheResourceCreator stores its data atomically,
i.e. |
CachingJavaSourceClassLoader | public CachingJavaSourceClassLoader(ClassLoader parentClassLoader, ResourceFinder sourceFinder, String optionalCharacterEncoding, ResourceFinder classFileCacheResourceFinder, ResourceCreator classFileCacheResourceCreator, EnumeratorSet debuggingInformation)(Code) | | Notice that this class is thread-safe if and only if the
classFileCacheResourceCreator stores its data atomically,
i.e. the classFileCacheResourceFinder sees the resource
written by the classFileCacheResourceCreator only after
the
OutputStream is closed.
In order to make the caching scheme work, both the
classFileCacheResourceFinder and the
sourceFinder must support the
org.codehaus.janino.util.resource.Resource.lastModified method, so that the modification time of the source and the class files
can be compared.
Parameters: parentClassLoader - Attempt to load classes through this one before looking for source files Parameters: sourceFinder - Finds JavaTM source for class pkg.Cls in resource pkg/Cls.java Parameters: optionalCharacterEncoding - Encoding of JavaTM source or null for platform default encoding Parameters: classFileCacheResourceFinder - Finds precompiled class pkg.Cls in resource pkg/Cls.class (see class description) Parameters: classFileCacheResourceCreator - Stores compiled class pkg.Cls in resource pkg/Cls.class (see class description) Parameters: debuggingInformation - What debugging information to include into the generated class files |
Fields inherited from org.codehaus.janino.JavaSourceClassLoader | Map precompiledClasses(Code)(Java Doc)
|
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)
|
|
|