public class SpringHandlerDefinitionBean extends Object implements org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
ClasspathHandlerDefinition| Constructor and Description |
|---|
SpringHandlerDefinitionBean()
Initializes definition bean with assumption that application context will be injected.
|
SpringHandlerDefinitionBean(org.springframework.context.ApplicationContext applicationContext)
Initializes definition bean with given application context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.axonframework.messaging.annotation.HandlerDefinition |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAdditionalHandlers(List<org.axonframework.messaging.annotation.HandlerDefinition> additionalFactories)
Defines any additional handler definitions that should be used.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanClassLoader(ClassLoader classLoader) |
public SpringHandlerDefinitionBean()
public SpringHandlerDefinitionBean(org.springframework.context.ApplicationContext applicationContext)
applicationContext - application contextpublic org.axonframework.messaging.annotation.HandlerDefinition getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.axonframework.messaging.annotation.HandlerDefinition>public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void setAdditionalHandlers(List<org.axonframework.messaging.annotation.HandlerDefinition> additionalFactories)
additionalFactories - The extra definitions to registerSpringBeanParameterResolverFactory,
ClasspathHandlerDefinitionpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2021. All rights reserved.