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

com.g2forge.gearbox.functional.proxy.Proxifier Maven / Gradle / Ivy

The newest version!
package com.g2forge.gearbox.functional.proxy;

import java.lang.reflect.Proxy;

import com.g2forge.gearbox.functional.runner.IRunner;

public class Proxifier implements IProxifier {
	@Override
	public  T generate(IRunner runner, Class type) {
		@SuppressWarnings("unchecked")
		final T retVal = (T) Proxy.newProxyInstance(type.getClassLoader(), new Class[] { type }, new ProxyInvocationHandler(runner));
		return retVal;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy