Package org.axonframework.eventhandling.annotation

Examples of org.axonframework.eventhandling.annotation.EventHandler


            EventSourcingHandler handlerAnnotation = member.getAnnotation(EventSourcingHandler.class);
            Class<?> definedPayload = null;
            if (handlerAnnotation != null) {
                definedPayload = handlerAnnotation.eventType();
            } else {
                EventHandler legacyAnnotation = member.getAnnotation(EventHandler.class);
                if (legacyAnnotation != null) {
                    definedPayload = legacyAnnotation.eventType();
                }
            }
            return definedPayload == Void.class ? null : definedPayload;
        }
View Full Code Here

TOP

Related Classes of org.axonframework.eventhandling.annotation.EventHandler

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.