* Scans for all AcrossEventHandler instances inside the context specified, and will
* register them with the AcrossEventPublisher.
*/
public static void autoRegisterEventHandlers( ApplicationContext applicationContext,
AcrossEventPublisher publisher ) {
BeanFilter eventHandlerFilter =
new BeanFilterComposite( new AnnotationBeanFilter( true, AcrossEventHandler.class ),
new AnnotationBeanFilter( Controller.class ) );
Collection<Object> handlers =
ApplicationContextScanner.findSingletonsMatching( applicationContext, eventHandlerFilter ).values();