public class AnnotatedSettings
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AnnotatedSettings |
DEFAULT_SETTINGS |
| Constructor and Description |
|---|
AnnotatedSettings() |
| Modifier and Type | Method and Description |
|---|---|
<P> void |
applyToNode(ConfigTree mergeTo,
P pojo) |
ConfigBranch |
makeTree(java.lang.Object pojo) |
<A extends java.lang.annotation.Annotation,T> |
registerConstraintProcessor(java.lang.Class<A> annotationType,
java.lang.Class<T> valueType,
ConstraintAnnotationProcessor<A,? super T> processor)
Registers a constraint annotation processor, tasked with processing annotations on config types.
|
<A extends java.lang.annotation.Annotation> |
registerGroupProcessor(java.lang.Class<A> annotationType,
SettingAnnotationProcessor.Group<A> processor)
Registers a group annotation processor, tasked with processing annotations on ancestor fields (config fields annotated with
Setting.Group. |
<A extends java.lang.annotation.Annotation> |
registerSettingProcessor(java.lang.Class<A> annotationType,
SettingAnnotationProcessor.Value<A> processor)
Registers a setting annotation processor, tasked with processing annotations on config fields.
|
static <T> java.lang.Class<T> |
wrapPrimitive(java.lang.Class<T> type) |
public static final AnnotatedSettings DEFAULT_SETTINGS
public <A extends java.lang.annotation.Annotation> AnnotatedSettings registerSettingProcessor(java.lang.Class<A> annotationType, SettingAnnotationProcessor.Value<A> processor)
A - the type of annotation to processannotationType - a class representing the type of annotation to processprocessor - a processor for this annotationthis, for chainingpublic <A extends java.lang.annotation.Annotation> AnnotatedSettings registerGroupProcessor(java.lang.Class<A> annotationType, SettingAnnotationProcessor.Group<A> processor)
Setting.Group.A - the type of annotation to processannotationType - a class representing the type of annotation to processprocessor - a processor for this annotationthis, for chainingpublic <A extends java.lang.annotation.Annotation,T> AnnotatedSettings registerConstraintProcessor(java.lang.Class<A> annotationType, java.lang.Class<T> valueType, ConstraintAnnotationProcessor<A,? super T> processor)
A - the type of annotation to processT - the type of values to processannotationType - a class representing the type of annotation to processvalueType - a class representing the type of values to processprocessor - a processor for this annotationthis, for chainingpublic ConfigBranch makeTree(java.lang.Object pojo) throws FiberException
FiberExceptionpublic <P> void applyToNode(ConfigTree mergeTo, P pojo) throws FiberException
FiberExceptionpublic static <T> java.lang.Class<T> wrapPrimitive(java.lang.Class<T> type)