|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.commandhandling.annotation.AggregateAnnotationCommandHandlerFactoryBean<T>
T
- The aggregate type on which command handlers are declared.public class AggregateAnnotationCommandHandlerFactoryBean<T extends AggregateRoot<?>>
Spring FactoryBean that creates an AggregateAnnotationCommandHandler instance.
Constructor Summary | |
---|---|
AggregateAnnotationCommandHandlerFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
AggregateAnnotationCommandHandler<T> |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAggregateType(Class<T> aggregateType)
Sets the type of aggregate to inspect for annotations. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setCommandBus(CommandBus commandBus)
Sets the CommandBus to subscribe the handler to |
void |
setCommandTargetResolver(CommandTargetResolver commandTargetResolver)
The resolver providing the identifier (and version) of the aggregate a command targets. |
void |
setParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Sets the ParameterResolverFactory to create parameter resolver instances with. |
void |
setRepository(Repository<T> repository)
The repository from which to load aggregate instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregateAnnotationCommandHandlerFactoryBean()
Method Detail |
---|
public AggregateAnnotationCommandHandler<T> getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<AggregateAnnotationCommandHandler<T extends AggregateRoot<?>>>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<AggregateAnnotationCommandHandler<T extends AggregateRoot<?>>>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<AggregateAnnotationCommandHandler<T extends AggregateRoot<?>>>
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setCommandBus(CommandBus commandBus)
commandBus
- the CommandBus to subscribe the handler topublic void setAggregateType(Class<T> aggregateType)
aggregateType
- the type of aggregate to inspect for annotationspublic void setRepository(Repository<T> repository)
repository
- the Repository from which to load aggregate instances.public void setCommandTargetResolver(CommandTargetResolver commandTargetResolver)
AnnotationCommandTargetResolver
.
commandTargetResolver
- The CommandTargetResolver to resolve the target aggregate withpublic void setParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
ClasspathParameterResolverFactory
that uses the aggregateType's class
loader.
parameterResolverFactory
- the ParameterResolverFactory to create parameter resolver instances with.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |