Class AnnotationParser
- java.lang.Object
-
- org.beanio.internal.config.annotation.AnnotationParser
-
public class AnnotationParser extends java.lang.ObjectFactory class for building component configurations from annotated classes.- Since:
- 2.1.0
-
-
Constructor Summary
Constructors Constructor Description AnnotationParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GroupConfigcreateGroupConfig(java.lang.Class<?> clazz)Creates aGroupConfigfrom the given type, if the type is annotated usingGroup.static GroupConfigcreateGroupConfig(java.lang.ClassLoader classLoader, java.lang.String type)Creates aGroupConfigfrom the given type, if the type is annotated usingGroup.static RecordConfigcreateRecordConfig(java.lang.Class<?> clazz)Creates aRecordConfigfrom the given type, if the type is annotated usingRecord.static RecordConfigcreateRecordConfig(java.lang.ClassLoader classLoader, java.lang.String type)Creates aRecordConfigfrom the given type, if the type is annotated usingRecord.
-
-
-
Method Detail
-
createGroupConfig
public static GroupConfig createGroupConfig(java.lang.ClassLoader classLoader, java.lang.String type)
Creates aGroupConfigfrom the given type, if the type is annotated usingGroup.- Parameters:
classLoader- the classloader to load the typetype- the type name- Returns:
- the
GroupConfigor null if the type was not annotated
-
createGroupConfig
public static GroupConfig createGroupConfig(java.lang.Class<?> clazz)
Creates aGroupConfigfrom the given type, if the type is annotated usingGroup.- Parameters:
clazz- the group type- Returns:
- the
GroupConfigor null if the type was not annotated
-
createRecordConfig
public static RecordConfig createRecordConfig(java.lang.ClassLoader classLoader, java.lang.String type)
Creates aRecordConfigfrom the given type, if the type is annotated usingRecord.- Parameters:
classLoader- the classloader to load the typetype- the type name- Returns:
- the
RecordConfigor null if the type was not annotated
-
createRecordConfig
public static RecordConfig createRecordConfig(java.lang.Class<?> clazz)
Creates aRecordConfigfrom the given type, if the type is annotated usingRecord.- Parameters:
clazz- the record type- Returns:
- the
RecordConfigor null if the class was not annotated
-
-