|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.proxetta.InvokeAspect
public abstract class InvokeAspect
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 |
|---|
public InvokeAspect()
| Method Detail |
|---|
public boolean apply(MethodInfo methodInfo)
true if method should be scanned.
public abstract InvokeReplacer pointcut(InvokeInfo invokeInfo)
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||