All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jodd.proxetta.InvokeAspect Maven / Gradle / Ivy

Go to download

Jodd Proxetta is the fastest proxy creator with unique approach for defying pointcuts and advices.

There is a newer version: 6.0.1
Show newest version
// 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