public class ReflectionScanner
extends java.lang.Object
Reflections
which logs warnings for unloadable classes but does not failConstructor and Description |
---|
ReflectionScanner(java.lang.Iterable<java.net.URL> urlsToScan,
java.lang.String optionalPrefix,
java.lang.ClassLoader... classLoaders)
scanner which will look in the given urls
(or if those are null attempt to infer from the first entry in the classloaders,
although currently that seems to only pick up directories, not JAR's),
optionally filtering for the given prefix;
any or all arguments can be null to accept all (and use default classpath for classloading).
|
Modifier and Type | Method and Description |
---|---|
org.reflections.Store |
getStore() |
<T> java.util.Set<java.lang.Class<? extends T>> |
getSubTypesOf(java.lang.Class<T> type)
overrides delegate so as to log rather than throw exception if a class cannot be loaded
|
java.util.Set<java.lang.Class<?>> |
getTypesAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
overrides delegate so as to log rather than throw exception if a class cannot be loaded
|
public ReflectionScanner(java.lang.Iterable<java.net.URL> urlsToScan, java.lang.String optionalPrefix, java.lang.ClassLoader... classLoaders)
public org.reflections.Store getStore()
public <T> java.util.Set<java.lang.Class<? extends T>> getSubTypesOf(java.lang.Class<T> type)
public java.util.Set<java.lang.Class<?>> getTypesAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)