org.rythmengine.internal.compiler
Class TemplateClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.rythmengine.internal.compiler.TemplateClassLoader

public class TemplateClassLoader
extends ClassLoader

Created by IntelliJ IDEA. User: luog Date: 18/01/12 Time: 9:01 PM To change this template use File | Settings | File Templates.


Nested Class Summary
static class TemplateClassLoader.ClassStateHashCreator
           
static class TemplateClassLoader.TemplateClassloaderState
          Each unique instance of this class represent a State of the TemplateClassLoader.
 
Field Summary
 TemplateClassLoader.TemplateClassloaderState currentState
          A representation of the current state of the TemplateClassLoader.
 RythmEngine engine
           
 ProtectionDomain protectionDomain
          This protection domain applies to all loaded classCache.
 
Constructor Summary
TemplateClassLoader(ClassLoader parent, RythmEngine engine)
           
TemplateClassLoader(RythmEngine engine)
           
 
Method Summary
 void detectChange(TemplateClass tc)
           
 void detectChanges()
          Detect Template changes
protected  byte[] getClassDefinition(String name0)
          Search for the byte code of the given class.
protected  Class<?> loadClass(String name, boolean resolve)
           
static void setSandboxPassword(String password)
           
 
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, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentState

public TemplateClassLoader.TemplateClassloaderState currentState
A representation of the current state of the TemplateClassLoader. It gets a new value each time the state of the classloader changes.


protectionDomain

public ProtectionDomain protectionDomain
This protection domain applies to all loaded classCache.


engine

public RythmEngine engine
Constructor Detail

TemplateClassLoader

public TemplateClassLoader(RythmEngine engine)

TemplateClassLoader

public TemplateClassLoader(ClassLoader parent,
                           RythmEngine engine)
Method Detail

setSandboxPassword

public static void setSandboxPassword(String password)

loadClass

protected Class<?> loadClass(String name,
                             boolean resolve)
                      throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

getClassDefinition

protected byte[] getClassDefinition(String name0)
Search for the byte code of the given class.


detectChange

public void detectChange(TemplateClass tc)

detectChanges

public void detectChanges()
Detect Template changes



Copyright © 2014. All Rights Reserved.