
jadex.platform.service.remote.replacements.GetComponentFeatureMethodReplacement Maven / Gradle / Ivy
package jadex.platform.service.remote.replacements;
import java.lang.reflect.Proxy;
import jadex.platform.service.remote.IMethodReplacement;
/**
*
*/
public class GetComponentFeatureMethodReplacement implements IMethodReplacement
{
/**
* Invoke the method on the given object with the given args.
*/
public Object invoke(Object obj, Object[] args)
{
return Proxy.newProxyInstance(obj.getClass().getClassLoader(), new Class[]{(Class>)args[0]}, Proxy.getInvocationHandler(obj));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy