org.apache.struts2.compiler
Class MemoryClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.struts2.compiler.MemoryClassLoader

public class MemoryClassLoader
extends ClassLoader

Keeps a cache of class name -> MemoryJavaFileObject. If the requested class name is in the cache a new class is defined for it, otherwise findClass delegates to the parent class loader


Constructor Summary
MemoryClassLoader()
           
 
Method Summary
 void addMemoryJavaFileObject(String jsp, MemoryJavaFileObject memoryJavaFileObject)
           
protected  Class<?> findClass(String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, 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

MemoryClassLoader

public MemoryClassLoader()
Method Detail

findClass

protected Class<?> findClass(String name)
                      throws ClassNotFoundException
Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException

addMemoryJavaFileObject

public void addMemoryJavaFileObject(String jsp,
                                    MemoryJavaFileObject memoryJavaFileObject)


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.