Skip navigation links

Oracle Fusion Middleware REST Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E26380-02


oracle.security.restsec.jwt
Class ReflectionUtils

java.lang.Object
  extended by oracle.security.restsec.jwt.ReflectionUtils


public class ReflectionUtils
extends java.lang.Object

Constructor Summary
ReflectionUtils()
           

 

Method Summary
static java.lang.Object createClassInstance(java.lang.Class<?> clazz, java.lang.Class<?>[] paramTypes, java.lang.Object[] paramValues)
          Construct an object for the class of the given type with the given params (arguments), arguments must match or the construction will fail.
static java.lang.Class<?> getClass(java.lang.String className, boolean initialize, java.lang.ClassLoader classLoader)
          This method is used to retrieve the class from its name.
static java.lang.String getJarPathLocation(java.lang.String name, java.lang.ClassLoader classLoader)
           
static java.lang.reflect.Method getMethodInstance(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>[] methodParmClasses)
          * This method will return Method object based on passed arguments.
static java.lang.Object invokeMethodOnObject(java.lang.reflect.Method methodInstance, java.lang.Object objectToInvoke, java.lang.Object[] methodParmValues)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ReflectionUtils

public ReflectionUtils()

Method Detail

getClass

public static java.lang.Class<?> getClass(java.lang.String className,
                                          boolean initialize,
                                          java.lang.ClassLoader classLoader)
This method is used to retrieve the class from its name.
Parameters:
className - a fully qualified class name
classLoader - ClassLoader which used to load the class.
Returns:
the Class if it can be found in the context or current ClassLoader OR null if no class can be found

createClassInstance

public static java.lang.Object createClassInstance(java.lang.Class<?> clazz,
                                                   java.lang.Class<?>[] paramTypes,
                                                   java.lang.Object[] paramValues)
Construct an object for the class of the given type with the given params (arguments), arguments must match or the construction will fail.
Parameters:
clazz - Class which instance need to be created.
paramTypes - The parameters for the constructor.
paramValues - The parameters value for the constructor.
Returns:
the newly constructed object of the given class type OR fails if the params cannot be matched

getMethodInstance

public static java.lang.reflect.Method getMethodInstance(java.lang.Class<?> clazz,
                                                         java.lang.String methodName,
                                                         java.lang.Class<?>[] methodParmClasses)
* This method will return Method object based on passed arguments. This method first try to find out the method in the class and then return instance of this method.
Parameters:
clazz -
methodName -
methodParmClasses -
Returns:

invokeMethodOnObject

public static java.lang.Object invokeMethodOnObject(java.lang.reflect.Method methodInstance,
                                                    java.lang.Object objectToInvoke,
                                                    java.lang.Object[] methodParmValues)
Parameters:
methodInstance -
objectToInvoke -
methodParmValues -
Returns:

getJarPathLocation

public static java.lang.String getJarPathLocation(java.lang.String name,
                                                  java.lang.ClassLoader classLoader)
Parameters:
name -
classLoader -
Returns:

Skip navigation links

Oracle Fusion Middleware REST Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E26380-02


Copyright © 2011, 2013 , Oracle. All rights reserved.