jodd.proxetta
Class InvokeAspect

java.lang.Object
  extended by jodd.proxetta.InvokeAspect

public abstract class InvokeAspect
extends java.lang.Object

Invoke aspect defines method pointcuts that should be replaced and their advice replacements.


Constructor Summary
InvokeAspect()
           
 
Method Summary
 boolean apply(MethodInfo methodInfo)
          Determines if some method should be scanned for pointcuts.
abstract  InvokeReplacer pointcut(InvokeInfo invokeInfo)
          Defines method invocation pointcut and returns replacement advice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeAspect

public InvokeAspect()
Method Detail

apply

public boolean apply(MethodInfo methodInfo)
Determines if some method should be scanned for pointcuts. Returns true if method should be scanned.


pointcut

public abstract InvokeReplacer pointcut(InvokeInfo invokeInfo)
Defines method invocation pointcut and returns replacement advice. Returns null if method doesn't have to be replaced at all.

Special case is new instruction. Since new opcode appears in the bytecode before actual constructor invocation, description of InvokeInfo is unknown. Therefore, for each constructor that will be replaced, there must be an advice replacement method with the same description.



Copyright © 2003-2011 Jodd Team