Java Method Call invokeQuietly(MethodHandle handle, Object instance)

Here you can find the source of invokeQuietly(MethodHandle handle, Object instance)

Description

invoke Quietly

License

Open Source License

Declaration

public static void invokeQuietly(MethodHandle handle, Object instance) 

Method Source Code


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

import java.lang.invoke.MethodHandle;

public class Main {
    public static void invokeQuietly(MethodHandle handle, Object instance) {
        try {//from  w  w  w. j  a  va 2 s  .  c om
            handle.invoke(instance);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}

Related

  1. invokeProperty(Object obj, String property)
  2. invokeProtectedMethod(Class c, String method, Object... args)
  3. invokeProtectedMethod(Object o, Object[] args, String methodName, Class[] types)
  4. invokeProxied(final Callable callable, final ClassLoader classLoader)
  5. invokePublicMethod(Object o, String methodName, Class[] classes, Object[] objects)
  6. invokeQuietly(Object target, Method method, Object[] params)
  7. invokeReadResolveOn(Object object, Class clz)
  8. invokeReal(Object real, Method m, Object[] args)
  9. invokeRemoteMBeanOperation(String remoteURL, String jmxName, Class klass, Function function)