Class ClassPathSupport

java.lang.Object
org.antublue.test.engine.internal.support.ClassPathSupport

public class ClassPathSupport extends Object
Class to implement ClassPathURIUtils
  • Method Details

    • getClasspathURIs

      public static List<URI> getClasspathURIs()
      Method to get a List of clas path URIs
      Returns:
      a List of class path URIs
    • getClassPathURLS

      public static List<URL> getClassPathURLS()
      Method to get a list of class path URLs
      Returns:
      a List of class path URLs
    • findClasses

      public static List<Class<?>> findClasses(Predicate<Class<?>> predicate)
      Method to scan the Java class path and return a list of classes matching the Predicate
      Parameters:
      predicate - predicate
      Returns:
      a List of Classes
    • findClasses

      public static List<Class<?>> findClasses(URI uri, Predicate<Class<?>> predicate)
      Method to scan the Java class path URI and return a list of classes matching the Predicate
      Parameters:
      uri - uri
      predicate - predicate
      Returns:
      a List of Classes
    • findClasses

      public static List<Class<?>> findClasses(String packageName, Predicate<Class<?>> predicate)
      Method to scan the Java class path and return a list of lasses matching the package name and Predicate
      Parameters:
      packageName - packageName
      predicate - predicate
      Returns:
      a List of Classes
    • findResources

      public static List<URL> findResources(String regex) throws IOException
      Method to scan the Java class path and return a list of URLs matching the name
      Parameters:
      regex - regex
      Returns:
      a List of URLs
      Throws:
      IOException