Java Method Call invoke(Object invoker, String cmd, Map params)

Here you can find the source of invoke(Object invoker, String cmd, Map params)

Description

invoke

License

Open Source License

Declaration

public static Object invoke(Object invoker, String cmd, Map params) throws IOException, IllegalAccessException,
            IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;

public class Main {
    public static Object invoke(Object invoker, String cmd, Map params) throws IOException, IllegalAccessException,
            IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {
        Method method = invoker.getClass().getMethod(cmd, Map.class);
        return method.invoke(invoker, params);
    }/*from w w w  .java2 s.  c o  m*/
}

Related

  1. invoke(Object context, String methodName, Object parameter)
  2. invoke(Object host, String method, Object[] args)
  3. invoke(Object instance, java.lang.reflect.Method method, Object... args)
  4. invoke(Object instance, Method method, Object... params)
  5. invoke(Object instance, String method, Class[] paramTypes, Object... parameters)
  6. invoke(Object methodHostInstance, String methodName, Class[] parameterTypes, Object[] args)
  7. invoke(Object o, Method m)
  8. invoke(Object o, Method method, Object... param)
  9. invoke(Object o, String m, Object... params)