|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.transform.inlining.compiler.JoinPointFactory
public class JoinPointFactory
TODO is factory a good name, now that it does so much more?
Factory for the different join point implementations. Compiles a new join point on the fly and loads the class.
| Constructor Summary | |
|---|---|
JoinPointFactory()
|
|
| Method Summary | |
|---|---|
static void |
addCompilationInfo(Class clazz,
CompilationInfo compilationInfo)
Adds or updates a compilation info. |
static Class |
attachToClassLoader(String joinpointClassName,
ClassLoader loader,
byte[] bytecode)
Loads a join point class, one specific class for each distinct join point. |
static byte[] |
compileJoinPoint(CompilationInfo.Model model)
Compiles a join point class, one specific class for each distinct join point. |
static Class |
compileJoinPointAndAttachToClassLoader(CompilationInfo.Model model,
ClassLoader loader)
Compiles and loades a join point class, one specific class for each distinct join point. |
static EmittedJoinPoint |
getEmittedJoinPoint(Class clazz)
Returns the emitted join point structure for a specific JIT generated join point class. |
static Set |
getJoinPointsMatching(ExpressionInfo expression)
Returns a list with all the join point compilers that matches a specific pointcut expression. |
static byte[] |
redefineJoinPoint(CompilationInfo compilationInfo)
Redefines the originally compiled join point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoinPointFactory()
| Method Detail |
|---|
public static Class compileJoinPointAndAttachToClassLoader(CompilationInfo.Model model,
ClassLoader loader)
model - the model for the compilationloader - the class loader that the compiled join point should live in
public static Class attachToClassLoader(String joinpointClassName,
ClassLoader loader,
byte[] bytecode)
joinpointClassName - loader - the class loader that the compiled join point should live inbytecode - of the joinpoint
public static void addCompilationInfo(Class clazz,
CompilationInfo compilationInfo)
clazz - compilationInfo - public static byte[] compileJoinPoint(CompilationInfo.Model model)
model - the model for the compilation
public static byte[] redefineJoinPoint(CompilationInfo compilationInfo)
compilationInfo - the model for the compilation
public static Set getJoinPointsMatching(ExpressionInfo expression)
expression - the pointcut expression
public static EmittedJoinPoint getEmittedJoinPoint(Class clazz)
clazz - the join point class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||