oracle.panama.util
Class CommonUtils

java.lang.Object
  |
  +--oracle.panama.util.CommonUtils

public class CommonUtils
extends java.lang.Object


Constructor Summary
CommonUtils()
           
 
Method Summary
TypeMethod
static java.lang.Object getClassInstance(java.lang.Object callingObject, java.lang.String className)
          Use reflection to get the instance of extenal hook.
static java.lang.Class loadClass(java.lang.Object callingObject, java.lang.String classNametoLoad)
          Returns a dynamic loaded Class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonUtils

public CommonUtils()
Method Detail

loadClass

public static java.lang.Class loadClass(java.lang.Object callingObject,
                                        java.lang.String classNametoLoad)
                                 throws java.lang.ClassNotFoundException
Returns a dynamic loaded Class.
Parameters:
callingObject - the calling object instance
the - name of the class to be loaded
Returns:
the loaded class.

getClassInstance

public static java.lang.Object getClassInstance(java.lang.Object callingObject,
                                                java.lang.String className)
                                         throws java.lang.ClassNotFoundException
Use reflection to get the instance of extenal hook.
Parameters:
callingObject - the calling object instance
the - name of the class to be instantiated
Returns:
Object the Object Instance obtained by a call to the getInstance() method.
Throws:
java.lang.ClassNotFoundException - when no such Class found or