public class SpringAxonConfiguration extends Object implements org.springframework.beans.factory.FactoryBean<Configuration>, org.springframework.context.SmartLifecycle
Configuration
for a Configurer
. This allows a Configuration
bean to be available in an Application Context that already defines a Configurer
.
This factory bean will also ensure the Configuration's
lifecycle is attached to the Spring Application
lifecycle.
Constructor and Description |
---|
SpringAxonConfiguration(Configurer configurer)
Initialize this
Configuration instance. |
Modifier and Type | Method and Description |
---|---|
Configuration |
getObject() |
Class<?> |
getObjectType() |
boolean |
isRunning() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
start() |
void |
stop() |
public SpringAxonConfiguration(Configurer configurer)
Configuration
instance.configurer
- The configurer to get the Configuration
from.@NonNull public Configuration getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<Configuration>
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Configuration>
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Copyright © 2010–2023. All rights reserved.