Package org.axonframework.common.annotation

Examples of org.axonframework.common.annotation.SpringBeanParameterResolverFactory


    }

    @Override
    public void afterPropertiesSet() throws Exception {
        if (parameterResolverFactory == null) {
            SpringBeanParameterResolverFactory springBeanParameterResolverFactory = new SpringBeanParameterResolverFactory();
            springBeanParameterResolverFactory.setApplicationContext(applicationContext);
            parameterResolverFactory = MultiParameterResolverFactory.ordered(
                    ClasspathParameterResolverFactory.forClass(aggregateType),
                    springBeanParameterResolverFactory);
        }
        handler = new AggregateAnnotationCommandHandler<T>(aggregateType, repository, commandTargetResolver,
View Full Code Here


                    format("Cannot initialize repository '%s'. "
                                   + "The bean with name '%s' does not extend from EventSourcingAggregateRoot.",
                           beanName, prototypeBeanName));
        }
        if (parameterResolverFactory == null) {
            final SpringBeanParameterResolverFactory springBeanParameterResolverFactory = new SpringBeanParameterResolverFactory();
            springBeanParameterResolverFactory.setApplicationContext(applicationContext);
            this.parameterResolverFactory = MultiParameterResolverFactory.ordered(
                    ClasspathParameterResolverFactory.forClass(aggregateType),
                    springBeanParameterResolverFactory);
        }
    }
View Full Code Here

    }

    @Override
    public void afterPropertiesSet() throws Exception {
        factories.add(ClasspathParameterResolverFactory.forClassLoader(classLoader));
        final SpringBeanParameterResolverFactory springBeanParameterResolverFactory = new SpringBeanParameterResolverFactory();
        springBeanParameterResolverFactory.setApplicationContext(applicationContext);
        factories.add(springBeanParameterResolverFactory);
    }
View Full Code Here

TOP

Related Classes of org.axonframework.common.annotation.SpringBeanParameterResolverFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.