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

com.blade.aop.Invocaction Maven / Gradle / Ivy

The newest version!
package com.blade.aop;

import java.lang.reflect.InvocationTargetException;

import net.sf.cglib.proxy.MethodProxy;

public class Invocaction {
	
	private Object target;
	private Object[] args;
	private MethodProxy proxy;
	
	public Invocaction(Object target, Object[] args, MethodProxy proxy) {
		this.target = target;
		this.args = args;
		this.proxy = proxy;
	}
	
	public Object invoke() throws Throwable{
		try {
			return proxy.invokeSuper(target, args);
		} catch (IllegalAccessException e) {
			throw e;
		} catch (IllegalArgumentException e) {
			throw e;
		} catch (InvocationTargetException e) {
			throw e;
		} catch (Throwable e) {
			throw e;
		}
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy