public class EventHandlerScanner extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
wire(Object instance,
BaseComponent root)
Recursively scans the controller's class and superclasses for @EventHandler
-annotated methods.
|
static void |
wire(Object instance,
BaseComponent component,
Map<String,String> onHandlers)
Wires onEvent style event handlers.
|
public static void wire(Object instance, BaseComponent root)
instance - Controller to be wired.root - The root component used to resolve component names.public static void wire(Object instance, BaseComponent component, Map<String,String> onHandlers)
instance - Controller to be wired.component - The component that triggers the event.onHandlers - The map of onEvent style handlers.Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.