com.sun.xml.ws.policy.privateutil
Class PolicyUtils.Reflection

java.lang.Object
  extended by com.sun.xml.ws.policy.privateutil.PolicyUtils.Reflection
Enclosing class:
PolicyUtils

public static class PolicyUtils.Reflection
extends Object

Reflection utilities wrapper


Constructor Summary
PolicyUtils.Reflection()
           
 
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

PolicyUtils.Reflection

public PolicyUtils.Reflection()
Method Detail

invoke

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

Throws:
RuntimePolicyUtilsException

invoke

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

Throws:
RuntimePolicyUtilsException


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