org.axonframework.eventhandling.annotation
Class AnnotationEventHandlerInvoker

java.lang.Object
  extended by org.axonframework.eventhandling.annotation.AnnotationEventHandlerInvoker

public class AnnotationEventHandlerInvoker
extends Object

Utility class that supports invocation of specific handler methods for a given event. See EventHandler for the rules for resolving the appropriate method.

Since:
0.1
Author:
Allard Buijze
See Also:
EventHandler

Constructor Summary
AnnotationEventHandlerInvoker(Object target)
          Initialize an event handler invoker that invokes handlers on the given target.
 
Method Summary
 void invokeEventHandlerMethod(EventMessage event)
          Invoke the appropriate @EventHandler for the given event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationEventHandlerInvoker

public AnnotationEventHandlerInvoker(Object target)
Initialize an event handler invoker that invokes handlers on the given target.

Parameters:
target - the bean on which to invoke event handlers
Method Detail

invokeEventHandlerMethod

public void invokeEventHandlerMethod(EventMessage event)
Invoke the appropriate @EventHandler for the given event

Parameters:
event - The message transporting the event


Copyright © 2010-2012. All Rights Reserved.