Interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>
- Type Parameters:
O
- The object being built by theAnnotationBuilder
BB
- TheAnnotationBuilder
that builds objects of type O. This is also theAnnotationBuilder
that 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
AnnotationConfigurer
s 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 TypeMethodDescriptionvoid
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.void
Initialise theAnnotationBuilder
.boolean
isAssignable
(AnnotationBuilder<O> builder)
-
Method Details
-
init
Initialise theAnnotationBuilder
. Here only shared state should be created and modified, but not properties on theAnnotationBuilder
used 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 theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.- Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
isAssignable
-