O - The object being built by the AnnotationBuilder BB - The AnnotationBuilder that builds objects of type O. This is
also the AnnotationBuilder that is being configured.public interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>
AnnotationBuilder. All
AnnotationConfigurers first have their init(AnnotationBuilder)
method invoked. After all init(AnnotationBuilder) methods have been
invoked, each configure(AnnotationBuilder) method is invoked.AbstractConfiguredAnnotationBuilder| Modifier and Type | Method and Description |
|---|---|
void |
configure(B builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder. |
void |
init(B builder)
Initialise the
AnnotationBuilder. |
boolean |
isAssignable(AnnotationBuilder<O> builder) |
void init(B builder) throws java.lang.Exception
AnnotationBuilder. Here only shared state should be
created and modified, but not properties on the AnnotationBuilder
used for building the object. This ensures that the
configure(AnnotationBuilder) method uses the correct shared
objects when building.builder - the builderjava.lang.Exception - if error occurredvoid configure(B builder) throws java.lang.Exception
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder.builder - the builderjava.lang.Exception - if error occurredboolean isAssignable(AnnotationBuilder<O> builder)