Class ClassPathUtil


  • public final class ClassPathUtil
    extends java.lang.Object
    Class path util
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<java.lang.Class<?>> getClassOfPackage​(java.lang.String packageName)
      Get classes of a package
      static ClassPathUtil getInstance()
      Get the instance
      java.util.List<java.lang.Class<?>> search​(java.lang.String inputClassName, boolean ignoreCase)
      Search a class
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static ClassPathUtil getInstance()
        Get the instance
        Returns:
        the instance
      • search

        public java.util.List<java.lang.Class<?>> search​(java.lang.String inputClassName,
                                                         boolean ignoreCase)
        Search a class
        Parameters:
        inputClassName - the class to search
        ignoreCase - true to ignore case
        Returns:
        the found classes
      • getClassOfPackage

        protected java.util.List<java.lang.Class<?>> getClassOfPackage​(java.lang.String packageName)
        Get classes of a package
        Parameters:
        packageName - the packagename
        Returns:
        the classes
        Throws:
        java.lang.ClassNotFoundException - In case of a class can't be found
        java.io.IOException - In case of an I/O error