Interface ComponentDefinition.ComponentCreator<C>
- Type Parameters:
C- The type of component defined.
- All Superinterfaces:
ComponentDefinition<C>
- All Known Implementing Classes:
AbstractComponent,InstantiatedComponentDefinition,LazyInitializedComponentDefinition
- Enclosing interface:
ComponentDefinition<C>
public static non-sealed interface ComponentDefinition.ComponentCreator<C>
extends ComponentDefinition<C>
Mandatory interface to be implemented by all implementations of
ComponentDefinition.
This separation will hide these methods from general use of the ComponentDefinition, while enforcing that
all ComponentDefinition instances will declare this method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.axonframework.common.configuration.ComponentDefinition
ComponentDefinition.ComponentCreator<C>, ComponentDefinition.IncompleteComponentDefinition<C> -
Method Summary
Modifier and TypeMethodDescriptionCreate a component matching the requirements configured on this definition.Methods inherited from interface org.axonframework.common.configuration.ComponentDefinition
name, onShutdown, onShutdown, onShutdown, onStart, onStart, onStart, rawType
-
Method Details
-
createComponent
Create a component matching the requirements configured on this definition.Multiple invocations of this method should return the same instance.
- Returns:
- A component based on this definition.
-