Class AnnotationParser
- java.lang.Object
-
- org.beanio.internal.config.annotation.AnnotationParser
-
public class AnnotationParser extends java.lang.Object
Factory 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 GroupConfig
createGroupConfig(java.lang.Class<?> clazz)
Creates aGroupConfig
from the given type, if the type is annotated usingGroup
.static GroupConfig
createGroupConfig(java.lang.ClassLoader classLoader, java.lang.String type)
Creates aGroupConfig
from the given type, if the type is annotated usingGroup
.static RecordConfig
createRecordConfig(java.lang.Class<?> clazz)
Creates aRecordConfig
from the given type, if the type is annotated usingRecord
.static RecordConfig
createRecordConfig(java.lang.ClassLoader classLoader, java.lang.String type)
Creates aRecordConfig
from 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 aGroupConfig
from the given type, if the type is annotated usingGroup
.- Parameters:
classLoader
- the classloader to load the typetype
- the type name- Returns:
- the
GroupConfig
or null if the type was not annotated
-
createGroupConfig
public static GroupConfig createGroupConfig(java.lang.Class<?> clazz)
Creates aGroupConfig
from the given type, if the type is annotated usingGroup
.- 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 aRecordConfig
from the given type, if the type is annotated usingRecord
.- Parameters:
classLoader
- the classloader to load the typetype
- the type name- Returns:
- the
RecordConfig
or null if the type was not annotated
-
createRecordConfig
public static RecordConfig createRecordConfig(java.lang.Class<?> clazz)
Creates aRecordConfig
from the given type, if the type is annotated usingRecord
.- Parameters:
clazz
- the record type- Returns:
- the
RecordConfig
or null if the class was not annotated
-
-