com.sun.xml.wss.impl.misc
Class ReflectionUtil

java.lang.Object
  extended by com.sun.xml.wss.impl.misc.ReflectionUtil

public class ReflectionUtil
extends Object

Reflection utilities wrapper


Constructor Summary
ReflectionUtil()
           
 
Method Summary
static
<T> T
invoke(Object target, String methodName, Class<T> resultClass, Object... parameters)
          Reflectively invokes specified method on the specified target
static
<T> T
invoke(Object target, String methodName, Class<T> resultClass, Object[] parameters, Class[] parameterTypes)
          Reflectively invokes specified method on the specified target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
Method Detail

invoke

public static <T> T invoke(Object target,
                           String methodName,
                           Class<T> resultClass,
                           Object... parameters)
                throws XWSSecurityRuntimeException
Reflectively invokes specified method on the specified target

Throws:
XWSSecurityRuntimeException

invoke

public static <T> T invoke(Object target,
                           String methodName,
                           Class<T> resultClass,
                           Object[] parameters,
                           Class[] parameterTypes)
                throws XWSSecurityRuntimeException
Reflectively invokes specified method on the specified target

Throws:
XWSSecurityRuntimeException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.