Interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>
- Type Parameters:
O- The object being built by theAnnotationBuilderBB- TheAnnotationBuilderthat builds objects of type O. This is also theAnnotationBuilderthat is being configured.
- All Known Subinterfaces:
StateMachineConfigurer<S,E>
- All Known Implementing Classes:
AbstractStateMachineConfigurerAdapter,AbstractTransitionConfigurer,AnnotationConfigurerAdapter,DefaultChoiceTransitionConfigurer,DefaultConfigurationConfigurer,DefaultDistributedStateMachineConfigurer,DefaultEntryTransitionConfigurer,DefaultExitTransitionConfigurer,DefaultExternalTransitionConfigurer,DefaultForkTransitionConfigurer,DefaultHistoryTransitionConfigurer,DefaultInternalTransitionConfigurer,DefaultJoinTransitionConfigurer,DefaultJunctionTransitionConfigurer,DefaultLocalTransitionConfigurer,DefaultModelConfigurer,DefaultMonitoringConfigurer,DefaultPersistenceConfigurer,DefaultPropertiesConfigurer,DefaultResourceConfigurer,DefaultSecurityConfigurer,DefaultStateConfigurer,DefaultVerifierConfigurer,EnumStateMachineConfigurerAdapter,StateMachineConfigurerAdapter
public interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>
Allows for configuring an
AnnotationBuilder. All
AnnotationConfigurers first have their init(AnnotationBuilder)
method invoked. After all init(AnnotationBuilder) methods have been
invoked, each configure(AnnotationBuilder) method is invoked.- Author:
- Rob Winch, Janne Valkealahti
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.voidInitialise theAnnotationBuilder.booleanisAssignable(AnnotationBuilder<O> builder)
-
Method Details
-
init
Initialise theAnnotationBuilder. Here only shared state should be created and modified, but not properties on theAnnotationBuilderused for building the object. This ensures that theconfigure(AnnotationBuilder)method uses the correct shared objects when building.- Parameters:
builder- the builder- Throws:
Exception- if error occurred
-
configure
Configure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.- Parameters:
builder- the builder- Throws:
Exception- if error occurred
-
isAssignable
-