Class SpringAxonApplication
java.lang.Object
org.axonframework.extension.spring.config.SpringAxonApplication
- All Implemented Interfaces:
ApplicationConfigurer
@Internal
@Component
public class SpringAxonApplication
extends Object
implements ApplicationConfigurer
- Since:
- 5.0.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionSpringAxonApplication(SpringComponentRegistry componentRegistry, SpringLifecycleRegistry lifecycleRegistry) Construct aSpringAxonApplicationConfigurerwith the givencomponentRegistryandlifecycleRegistry. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the completely initializedConfigurationinstance of typeCbuilt using thisConfigurerimplementation.componentRegistry(Consumer<ComponentRegistry> componentRegistrar) Executes the givencomponentRegistraron the component registry associated with thisApplicationConfigurer.lifecycleRegistry(Consumer<LifecycleRegistry> lifecycleRegistrar) Executes the givenlifecycleRegistraron the lifecycle registry associated with thisApplicationConfigurer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.common.configuration.ApplicationConfigurer
start
-
Constructor Details
-
SpringAxonApplication
@Internal @Autowired public SpringAxonApplication(@Nonnull SpringComponentRegistry componentRegistry, @Nonnull SpringLifecycleRegistry lifecycleRegistry) Construct aSpringAxonApplicationConfigurerwith the givencomponentRegistryandlifecycleRegistry.- Parameters:
componentRegistry- The Spring-basedComponentRegistryused forcomponentRegistry(Consumer)operation and theAxonConfigurationbuiltby thisApplicationConfigurer.lifecycleRegistry- The Spring-basedComponentRegistryused forlifecycleRegistry(Consumer)operation.
-
-
Method Details
-
componentRegistry
public ApplicationConfigurer componentRegistry(@Nonnull Consumer<ComponentRegistry> componentRegistrar) Description copied from interface:ApplicationConfigurerExecutes the givencomponentRegistraron the component registry associated with thisApplicationConfigurer.- Specified by:
componentRegistryin interfaceApplicationConfigurer- Parameters:
componentRegistrar- The actions to take on the component registry.- Returns:
- This
ApplicationConfigurerfor a fluent API.
-
lifecycleRegistry
public ApplicationConfigurer lifecycleRegistry(@Nonnull Consumer<LifecycleRegistry> lifecycleRegistrar) Description copied from interface:ApplicationConfigurerExecutes the givenlifecycleRegistraron the lifecycle registry associated with thisApplicationConfigurer.- Specified by:
lifecycleRegistryin interfaceApplicationConfigurer- Parameters:
lifecycleRegistrar- The actions to take on the lifecycle registry.- Returns:
- This
ApplicationConfigurerfor a fluent API.
-
build
Description copied from interface:ApplicationConfigurerReturns the completely initializedConfigurationinstance of typeCbuilt using thisConfigurerimplementation.It is not recommended to change any configuration on
this ApplicationConfigureronce this method is called.- Specified by:
buildin interfaceApplicationConfigurer- Returns:
- The fully initialized
Configurationinstance of typeC.
-