|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
org.curjent.agent.CustomLoader
public class CustomLoader
Custom class loader. See the class description for AgentLoader
.
Constructor Summary | |
---|---|
CustomLoader(ClassLoader parent)
Initializes the ClassLoader super class with the given
parent . |
Method Summary | |
---|---|
Class<?> |
defineClass(String name,
byte[] bytes)
Calls the super class's defineClass method using an offset
of 0 and a length equal to bytes.length . |
ClassLoader |
getClassLoader()
Returns this . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomLoader(ClassLoader parent)
ClassLoader
super class with the given
parent
.
Method Detail |
---|
public ClassLoader getClassLoader()
this
.
getClassLoader
in interface AgentLoader
public Class<?> defineClass(String name, byte[] bytes)
defineClass
method using an offset
of 0
and a length equal to bytes.length
.
defineClass
in interface AgentLoader
name
- The class's fully qualified name.bytes
- The generated bytecodes for the class. The offset is
0
, and the length is equal to bytes.length
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |