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 java.lang.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(java.lang.String jsp, MemoryJavaFileObject memoryJavaFileObject)
           
protected  java.lang.Class<?> findClass(java.lang.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 java.lang.Class<?> findClass(java.lang.String name)
                                throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

addMemoryJavaFileObject

public void addMemoryJavaFileObject(java.lang.String jsp,
                                    MemoryJavaFileObject memoryJavaFileObject)


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