Class AnnotationParser


  • public class AnnotationParser
    extends java.lang.Object
    Factory class for building component configurations from annotated classes.
    Since:
    2.1.0
    • Constructor Detail

      • AnnotationParser

        public AnnotationParser()
    • Method Detail

      • createGroupConfig

        public static GroupConfig createGroupConfig​(java.lang.ClassLoader classLoader,
                                                    java.lang.String type)
        Creates a GroupConfig from the given type, if the type is annotated using Group.
        Parameters:
        classLoader - the classloader to load the type
        type - the type name
        Returns:
        the GroupConfig or null if the type was not annotated
      • createGroupConfig

        public static GroupConfig createGroupConfig​(java.lang.Class<?> clazz)
        Creates a GroupConfig from the given type, if the type is annotated using Group.
        Parameters:
        clazz - the group type
        Returns:
        the GroupConfig or null if the type was not annotated
      • createRecordConfig

        public static RecordConfig createRecordConfig​(java.lang.ClassLoader classLoader,
                                                      java.lang.String type)
        Creates a RecordConfig from the given type, if the type is annotated using Record.
        Parameters:
        classLoader - the classloader to load the type
        type - the type name
        Returns:
        the RecordConfig or null if the type was not annotated
      • createRecordConfig

        public static RecordConfig createRecordConfig​(java.lang.Class<?> clazz)
        Creates a RecordConfig from the given type, if the type is annotated using Record.
        Parameters:
        clazz - the record type
        Returns:
        the RecordConfig or null if the class was not annotated