Class ClassResolver

java.lang.Object
com.atlassian.confluence.util.test.ClassResolver

public final class ClassResolver extends Object
  • Constructor Details

    • ClassResolver

      public ClassResolver()
  • Method Details

    • isSupportJarResources

      public boolean isSupportJarResources()
    • setSupportJarResources

      public ClassResolver setSupportJarResources(boolean supportJarResources)
    • forPattern

      public Set<Class<?>> forPattern(String pattern)
    • forPattern

      public Set<Class<?>> forPattern(@Nullable String pattern, @Nullable List<Class<? extends Annotation>> annotations)
      Filter classes that match the pattern and have matching annotations on the class
      Parameters:
      pattern - filter pattern to apply. Can be null, defaulting to all classpath URL resources
      annotations - annotations to ensure are present. Can be null
      Returns:
      the classes matching the pattern and annotation filters