Package io.contextmap.application
Class ReflectionService
java.lang.Object
io.contextmap.application.ReflectionService
- All Implemented Interfaces:
io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
public class ReflectionService
extends Object
implements io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation(Class<?> type, String annotationFullyQualifiedName) getAnnotation(Field field, String annotationFullyQualifiedName) getAnnotation(Method method, String annotationFullyQualifiedName) getAnnotationFieldValue(Annotation annotation, String fieldName) getArgumentsWithAnnotation(Method method, String annotationFullyQualifiedName) booleanisClassAvailable(String fullyQualifiedName) booleanisClassInSourceDirectory(Class<?> type) scanForClassesAnnotatedWith(String[] annotationClasses) scanForClassesImplementingInterface(String interfaceFQN) scanForMethodsAnnotatedWith(String[] annotationClasses)
-
Constructor Details
-
ReflectionService
public ReflectionService(org.apache.maven.project.MavenProject project)
-
-
Method Details
-
isClassInSourceDirectory
-
scanForMethodsAnnotatedWith
- Throws:
Exception
-
scanForClassesAnnotatedWith
- Throws:
Exception
-
scanForClassesImplementingInterface
- Throws:
Exception
-
getAnnotation
- Specified by:
getAnnotationin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
-
getAnnotation
- Specified by:
getAnnotationin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
-
getAnnotation
- Specified by:
getAnnotationin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
-
getArgumentsWithAnnotation
public Map<Parameter,Annotation> getArgumentsWithAnnotation(Method method, String annotationFullyQualifiedName) -
getAnnotationFieldValue
- Specified by:
getAnnotationFieldValuein interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonReflection
-
isClassAvailable
-