Class ClassLoaderSupport


  • public final class ClassLoaderSupport
    extends java.lang.Object
    Support utilities for classloading.
    Version:
    $Revision: 88b901bf20fb $
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ClassLoaderSupport()
      Default Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ClassLoaderSupport getInstance()
      accessor for singleton instance.
      java.lang.Class<?> loadClass​(java.lang.String className)
      Try to load the given lass from the current context.
      • Methods inherited from class java.lang.Object

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

      • ClassLoaderSupport

        protected ClassLoaderSupport()
        Default Constructor.
    • Method Detail

      • getInstance

        public static ClassLoaderSupport getInstance()
        accessor for singleton instance.
        Returns:
        an instance of this class.
      • loadClass

        public java.lang.Class<?> loadClass​(java.lang.String className)
                                     throws java.lang.ClassNotFoundException
        Try to load the given lass from the current context.
        Parameters:
        className - name of the class to load
        Returns:
        a Class object for the given class if possible.
        Throws:
        java.lang.ClassNotFoundException - if the class could not be found.
        See Also:
        ClassLoader.loadClass(String)