nyla.solutions.core.util.PROXY Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.core Show documentation
Show all versions of nyla.solutions.core Show documentation
This Java API provides support for application utilities (application configuration, data encryption, debugger, text processing, and more).
The newest version!
package nyla.solutions.core.util;
import nyla.solutions.core.exception.RequiredException;
import java.lang.reflect.Method;
import java.util.ArrayList;
/**
*
* PROXY provides a set of functions to execute an operation on an object
*
*
* @author Gregory Green
* @version 1.0
*/
public class PROXY
{
public static Object executeMethod(Object aObject, String aMethodName,
Object[] aArguments) throws Exception
{
if (aObject == null)
throw new RequiredException("Input object");
// get array of inputs
Class>[] parameterTypes = null;
ArrayList