|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.slim3.commons.web.HotdeployClassLoader
public class HotdeployClassLoader
The ClassLoader
for HOT deployment.
Constructor Summary | |
---|---|
HotdeployClassLoader(ClassLoader parentClassLoader)
Constructor |
Method Summary | |
---|---|
protected Class<?> |
defineClass(String className,
boolean resolve)
Defines the class. |
protected Class<?> |
defineClass(String className,
byte[] bytes)
Defines the class. |
protected Class<?> |
defineClass(String className,
InputStream is)
Defines the class. |
protected byte[] |
getBytes(InputStream is)
Returns input stream data as the array of bytes. |
protected InputStream |
getInputStream(String path)
Returns the input stream |
protected boolean |
isTargetClass(String className)
Determines if the class is target of HOT deployment. |
Class<?> |
loadClass(String className,
boolean resolve)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HotdeployClassLoader(ClassLoader parentClassLoader)
parentClassLoader
- the parent class loader.Method Detail |
---|
public Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected boolean isTargetClass(String className)
className
- the class name
protected Class<?> defineClass(String className, boolean resolve)
className
- the class nameresolve
- whether the class is resolved
protected Class<?> defineClass(String className, InputStream is)
className
- the class nameis
- the input stream
protected Class<?> defineClass(String className, byte[] bytes)
className
- the class namebytes
- the array of bytes.
protected InputStream getInputStream(String path)
path
- the path
protected byte[] getBytes(InputStream is) throws RuntimeException
is
- the input stream
RuntimeException
- if IOException
is encountered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |