Class AbstractAnnotationBuilder<O>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AbstractAnnotationBuilder<O>
- Type Parameters:
O
- the type of Object that is being built
- All Implemented Interfaces:
AnnotationBuilder<O>
- Direct Known Subclasses:
AbstractConfiguredAnnotationBuilder
A base
AnnotationBuilder
that ensures the object being built is only
built one time.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AbstractAnnotationBuilder
public AbstractAnnotationBuilder()
-
-
Method Details
-
build
Description copied from interface:AnnotationBuilder
Builds the object and returns it or null.- Specified by:
build
in interfaceAnnotationBuilder<O>
- Returns:
- the Object to be built or null if the implementation allows it.
- Throws:
Exception
- if an error occurred when building the Object
-
getObject
Gets the object that was built. If it has not been built yet an Exception is thrown.- Returns:
- the Object that was built
-
doBuild
Subclasses should implement this to perform the build.
-