Annotated event handlers

2 views
Skip to first unread message

Christophe Herreman

unread,
Nov 22, 2009, 3:49:58 PM11/22/09
to springactionscript-dev
Hi all,

I just added support for annotation/metadata configuration of event handlers for EventBus events. This allows you to listen for events simply by annotating a method with [EventHandler] metadata.

To use this, you'll need to create an object definition for the EventHandlerMetaDataPostProcessor in the application context. You don't need to register the post processor explicitely since the container will pick it up if it has an object definition of that type.

There are different possibilities in the usage of the [EventHandler] metadata. For more details please check the docs of the EventHandlerMetaDataPostProcessor class.

cheers,
Christophe
Reply all
Reply to author
Forward
0 new messages