@Bean("parameterResolverFactory")@Bean
fun axonConfig(commandBus: CommandBus,
eventStore: EventStore,
projector: Projector): org.axonframework.config.Configuration {
val configurer = DefaultConfigurer.defaultConfiguration()
configurer.configureAggregate(MyAggregate::class.java)
configurer.configureCommandBus { commandBus }
configurer.configureEventStore { eventStore }
val configuration = configurer
.buildConfiguration()
configuration.start()
return configuration
}
@Bean("parameterResolverFactory")
fun parameterResolverFactory(): SpringParameterResolverFactoryBean {
log.info("INIT SpringParameterResolverFactoryBean")
return SpringParameterResolverFactoryBean()
}
@Aggregate
class MyAggregate() {
...
@CommandHandler
fun doSomething(command: MyCommand, someInjectedThing:SomeThing) {
...
}
...
}
Caused by: org.axonframework.messaging.annotation.UnsupportedHandlerException: Unable to resolve parameter 1 (SomeThing) in handler public void nl.dstibbe.labs.axon.MyAggregate.doSomething(nl.dstibbe.labs.axon.MyCommand,nl.dstibbe.labs.axon.SomeThing).
@Aggregate(repository="bidAggregateRepository")
public class BidAggregate {
@AggregateIdentifier
private String id;
@Autowired
private BidServicesHelper bidhelper;
@Autowired
private HashMap<String,String> participantCache;
Needless to say, all my autowires are null
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.