public class EventHandlerScanner extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
wire(Object instance,
BaseComponent component,
Map<String,String> onHandlers)
Wires onEvent style event handlers.
|
static void |
wire(Object instance,
BaseComponent root,
String... mode)
Scans the specified class for @EventHandler-annotated methods.
|
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.public static void wire(Object instance, BaseComponent root, String... mode)
instance - Controller to be wired.root - The root component used to resolve component names.mode - The wiring mode(s).Copyright © 2018 Fujion Framework. All rights reserved.