Class ClassResolver
- java.lang.Object
-
- com.atlassian.confluence.util.test.ClassResolver
-
public class ClassResolver extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<?>>
forPattern(@Nullable String pattern, @Nullable List<Class<? extends Annotation>> annotations)
Filter classes that match the pattern and have matching annotations on the classSet<Class<?>>
forPattern(String pattern)
boolean
isSupportJarResources()
ClassResolver
setSupportJarResources(boolean supportJarResources)
-
-
-
Method Detail
-
isSupportJarResources
public boolean isSupportJarResources()
-
setSupportJarResources
public ClassResolver setSupportJarResources(boolean supportJarResources)
-
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 resourcesannotations
- annotations to ensure are present. Can be null- Returns:
- the classes matching the pattern and annotation filters
-
-