Class ClassLoaderSearchUtil


  • class ClassLoaderSearchUtil
    extends java.lang.Object
    Utilities to search a series of ClassLoaders for a Class by name. Not to be granted visibility outside of this package, unless scoped out to internals (this is not part of the public user API)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger log
      Logger
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ClassLoaderSearchUtil()
      No instances, keep private
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.Class<?> findClassFromClassLoaders​(java.lang.String className, java.lang.Iterable<java.lang.ClassLoader> classLoaders)
      Finds a Class by name using a series of ClassLoaders as the search path
      • Methods inherited from class java.lang.Object

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

      • log

        private static final java.util.logging.Logger log
        Logger
    • Constructor Detail

      • ClassLoaderSearchUtil

        private ClassLoaderSearchUtil()
        No instances, keep private
    • Method Detail

      • findClassFromClassLoaders

        static java.lang.Class<?> findClassFromClassLoaders​(java.lang.String className,
                                                            java.lang.Iterable<java.lang.ClassLoader> classLoaders)
                                                     throws java.lang.ClassNotFoundException,
                                                            java.lang.IllegalArgumentException
        Finds a Class by name using a series of ClassLoaders as the search path
        Parameters:
        className -
        classLoaders -
        Returns:
        Throws:
        java.lang.ClassNotFoundException - If the Class could not be found in any of the specified CLs
        java.lang.IllegalArgumentException