org.codehaus.aspectwerkz.joinpoint.management
Class JitCompiler

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.management.JitCompiler

public class JitCompiler
extends Object

Runtime (Just-In-Time/JIT) compiler.

Compiles a custom JoinPoint class that invokes all advices in a specific advice chain (at a specific join point) and the target join point statically.

Author:
Jonas Bonér , Alexandre Vasseur

Nested Class Summary
static class JitCompiler.RttiInfo
          Struct for static info.
 
Method Summary
static JoinPoint compileJoinPoint(int joinPointHash, int joinPointType, PointcutType pointcutType, AdviceIndexInfo[] advice, Class declaringClass, Class targetClass, AspectSystem system, Object thisInstance, Object targetInstance, int hotswapCount)
          Compiles a join point class on the fly that invokes the advice chain and the target join point statically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compileJoinPoint

public static JoinPoint compileJoinPoint(int joinPointHash,
                                         int joinPointType,
                                         PointcutType pointcutType,
                                         AdviceIndexInfo[] advice,
                                         Class declaringClass,
                                         Class targetClass,
                                         AspectSystem system,
                                         Object thisInstance,
                                         Object targetInstance,
                                         int hotswapCount)
Compiles a join point class on the fly that invokes the advice chain and the target join point statically.

Parameters:
joinPointHash - the join point hash
joinPointType - the join point joinPointType
pointcutType - the pointcut type
advice - a list with the advice
declaringClass - the declaring class
targetClass - the currently executing class
system - the system
thisInstance -
targetInstance -
hotswapCount -
Returns:
the JIT compiled join point


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.