Class DynamicLoad

java.lang.Object
com.onenetwork.platform.tools.util.DynamicLoad

public class DynamicLoad
extends java.lang.Object
This class provides a safe way to invoke Class.forName and loader.loadClass
  • Constructor Summary

    Constructors 
    Constructor Description
    DynamicLoad()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.Class<?> forName​(java.lang.String className)  
    static java.lang.Class<?> loadClass​(java.lang.ClassLoader loader, java.lang.String className)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • forName

      public static java.lang.Class<?> forName​(java.lang.String className) throws java.lang.ClassNotFoundException
      Throws:
      java.lang.ClassNotFoundException
    • loadClass

      public static java.lang.Class<?> loadClass​(java.lang.ClassLoader loader, java.lang.String className) throws java.lang.ClassNotFoundException
      Throws:
      java.lang.ClassNotFoundException