jodd.proxetta.InvokeAspect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-proxetta Show documentation
Show all versions of jodd-proxetta Show documentation
Jodd Proxetta is the fastest proxy creator with unique approach for defying pointcuts and advices.
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.proxetta;
/**
* Invoke aspect defines method pointcuts that should be replaced and
* their advice replacements.
*/
public abstract class InvokeAspect {
/**
* Determines if some method should be scanned for pointcuts.
* Returns true
if method should be scanned.
*/
public boolean apply(MethodInfo methodInfo) {
return true;
}
/**
* 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.
*/
public abstract InvokeReplacer pointcut(InvokeInfo invokeInfo);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy