public class AnnotationParser extends Object
Constructor and Description |
---|
AnnotationParser() |
Modifier and Type | Method and Description |
---|---|
static GroupConfig |
createGroupConfig(Class<?> clazz)
Creates a
GroupConfig from the given type, if the type is annotated
using Group . |
static GroupConfig |
createGroupConfig(ClassLoader classLoader,
String type)
Creates a
GroupConfig from the given type, if the type is annotated
using Group . |
static RecordConfig |
createRecordConfig(Class<?> clazz)
Creates a
RecordConfig from the given type, if the type is annotated
using Record . |
static RecordConfig |
createRecordConfig(ClassLoader classLoader,
String type)
Creates a
RecordConfig from the given type, if the type is annotated
using Record . |
public static GroupConfig createGroupConfig(ClassLoader classLoader, String type)
GroupConfig
from the given type, if the type is annotated
using Group
.classLoader
- the classloader to load the typetype
- the type nameGroupConfig
or null if the type was not annotatedpublic static GroupConfig createGroupConfig(Class<?> clazz)
GroupConfig
from the given type, if the type is annotated
using Group
.clazz
- the group typeGroupConfig
or null if the type was not annotatedpublic static RecordConfig createRecordConfig(ClassLoader classLoader, String type)
RecordConfig
from the given type, if the type is annotated
using Record
.classLoader
- the classloader to load the typetype
- the type nameRecordConfig
or null if the type was not annotatedpublic static RecordConfig createRecordConfig(Class<?> clazz)
RecordConfig
from the given type, if the type is annotated
using Record
.clazz
- the record typeRecordConfig
or null if the class was not annotated