Package org.axonframework.common.annotation

Examples of org.axonframework.common.annotation.MessageHandlerInvoker


     *
     * @param instance The object (typically an entity) to create the MessageHandlerInvoker for
     * @return a MessageHandlerInvoker that invokes handler methods on given <code>instance</code>
     */
    public MessageHandlerInvoker createEventHandlerInvoker(Object instance) {
        return new MessageHandlerInvoker(instance, parameterResolverFactory, false,
                                         AggregatedEventSourcingHandlerDefinition.INSTANCE);
    }
View Full Code Here


     * @param annotatedEventListener   the annotated event listener
     * @param parameterResolverFactory the strategy for resolving handler method parameter values
     */
    public AnnotationEventListenerAdapter(Object annotatedEventListener,
                                          ParameterResolverFactory parameterResolverFactory) {
        this.invoker = new MessageHandlerInvoker(annotatedEventListener, parameterResolverFactory, false,
                                                 AnnotatedEventHandlerDefinition.INSTANCE);
        this.listenerType = annotatedEventListener.getClass();
        if (annotatedEventListener instanceof ReplayAware) {
            this.replayAware = (ReplayAware) annotatedEventListener;
        } else {
View Full Code Here

     */
    @Deprecated
    public AnnotationEventListenerAdapter(Object annotatedEventListener, EventBus eventBus) {
        ParameterResolverFactory factory = ClasspathParameterResolverFactory.forClass(annotatedEventListener
                                                                                              .getClass());
        this.invoker = new MessageHandlerInvoker(annotatedEventListener, factory, false,
                                                 AnnotatedEventHandlerDefinition.INSTANCE);
        this.listenerType = annotatedEventListener.getClass();
        this.eventBus = eventBus;
        if (annotatedEventListener instanceof ReplayAware) {
            this.replayAware = (ReplayAware) annotatedEventListener;
View Full Code Here

TOP

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

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.