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

org.nakedobjects.headlessviewer.viewer.internal.InvocationHandlerMethodInterceptor Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package org.nakedobjects.headlessviewer.viewer.internal;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

public class InvocationHandlerMethodInterceptor implements MethodInterceptor {
	private final InvocationHandler handler;

	InvocationHandlerMethodInterceptor(InvocationHandler handler) {
		this.handler = handler;
	}

	public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
	    return handler.invoke(obj, method, args);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy