Package com.arpnetworking.utility
Class ReflectionsDatabase
java.lang.Object
com.arpnetworking.utility.ReflectionsDatabase
- All Implemented Interfaces:
AnnotationDatabase
,InterfaceDatabase
public final class ReflectionsDatabase
extends Object
implements InterfaceDatabase, AnnotationDatabase
Default implementation of
InterfaceDatabase
.- Author:
- Ville Koskela (ville dot koskela at inscopemetrics dot com)
-
Method Summary
Modifier and TypeMethodDescriptionfindClassesWithAnnotation
(Class<? extends Annotation> annotationClass) Retrieve theSet
of classes with the declared annotation.findClassesWithInterface
(Class<T> interfaceClass) Retrieve theSet
of classes with the implemented interface.static ReflectionsDatabase
Create a new instance ofInterfaceDatabase
.Generate a Steno log compatible representation.toString()
-
Method Details
-
newInstance
Create a new instance ofInterfaceDatabase
.- Returns:
- New instance of
InterfaceDatabase
.
-
findClassesWithAnnotation
Description copied from interface:AnnotationDatabase
Retrieve theSet
of classes with the declared annotation.- Specified by:
findClassesWithAnnotation
in interfaceAnnotationDatabase
- Parameters:
annotationClass
- The annotation class to search for.- Returns:
- The
Set
of classes that are declared with the specified annotation.
-
findClassesWithInterface
Description copied from interface:InterfaceDatabase
Retrieve theSet
of classes with the implemented interface.- Specified by:
findClassesWithInterface
in interfaceInterfaceDatabase
- Type Parameters:
T
- The interface type.- Parameters:
interfaceClass
- The interface class to search for.- Returns:
- The
Set
of classes that are implementing the specified interface.
-
toLogValue
Generate a Steno log compatible representation.- Returns:
- Steno log compatible representation.
-
toString
-