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.
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateClassLoader.ClassStateHashCreator |
static class |
TemplateClassLoader.TemplateClassloaderState
Each unique instance of this class represent a State of the TemplateClassLoader.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
TemplateClassLoader(ClassLoader parent,
RythmEngine engine) |
TemplateClassLoader(RythmEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
int |
computePathHash() |
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) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic 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.
public ProtectionDomain protectionDomain
This protection domain applies to all loaded classCache.
public RythmEngine engine
public TemplateClassLoader(RythmEngine engine)
public TemplateClassLoader(ClassLoader parent, RythmEngine engine)
public static void setSandboxPassword(String password)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionprotected byte[] getClassDefinition(String name0)
Search for the byte code of the given class.
public void detectChange(TemplateClass tc)
public void detectChanges()
Detect Template changes
public int computePathHash()
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.