Class ClassLoaderUtility

java.lang.Object
com.tenio.common.bootstrap.utility.ClassLoaderUtility

public final class ClassLoaderUtility extends Object
This utility class helps you retrieve all classes from a java package.
  • Method Details

    • getClasses

      public static HashSet<Class<?>> getClasses(String packages) throws ClassNotFoundException
      Attempts to list all the classes in the specified package as determined by the context class loader.
      Parameters:
      packages - the package name to search
      Returns:
      a list of classes that exist within that package
      Throws:
      ClassNotFoundException - if something went wrong