public class TypeFinderOverReflections extends Object implements TypeFinder
TypeFinder that uses Reflections.| Constructor and Description |
|---|
TypeFinderOverReflections(InstanceFactory factory,
org.reflections.Reflections reflections) |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<? extends T> |
getSubTypesAsInstances(Class<T> type)
Get sub types of the given class automatically creating them.
|
<T> Set<Class<? extends T>> |
getSubTypesOf(Class<T> type)
Get sub types of the given class.
|
Set<Class<?>> |
getTypesAnnotatedWith(Class<? extends Annotation> annotationType)
Get classes that have been annotated with a certain annotation.
|
Set<? extends Object> |
getTypesAnnotatedWithAsInstances(Class<? extends Annotation> annotationType)
Get classes that have the given annotation, automatically creating them.
|
public TypeFinderOverReflections(InstanceFactory factory, org.reflections.Reflections reflections)
public Set<Class<?>> getTypesAnnotatedWith(Class<? extends Annotation> annotationType)
TypeFindergetTypesAnnotatedWith in interface TypeFinderpublic Set<? extends Object> getTypesAnnotatedWithAsInstances(Class<? extends Annotation> annotationType)
TypeFindergetTypesAnnotatedWithAsInstances in interface TypeFinderpublic <T> Set<Class<? extends T>> getSubTypesOf(Class<T> type)
TypeFindergetSubTypesOf in interface TypeFinderpublic <T> Set<? extends T> getSubTypesAsInstances(Class<T> type)
TypeFindergetSubTypesAsInstances in interface TypeFinderCopyright © 2017. All rights reserved.