public class SingleArgumentMethodEventListener extends Object implements TypedEventListener
| Constructor and Description |
|---|
SingleArgumentMethodEventListener(Object target,
Method method) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Object event)
Returns
true if the listener instance can process the specified event object, false otherwise. |
Class |
getEventType() |
Method |
getMethod() |
protected Class |
getMethodArgumentType(Method method) |
Object |
getTarget() |
void |
onEvent(Object event)
Handles the specified event.
|
public Object getTarget()
public Method getMethod()
public boolean accepts(Object event)
EventListenertrue if the listener instance can process the specified event object, false otherwise.accepts in interface EventListenerevent - the event object to testtrue if the listener instance can process the specified event object, false otherwise.public Class getEventType()
getEventType in interface TypedEventListenerpublic void onEvent(Object event)
EventListeneronEvent in interface EventListenerevent - the event to handle.Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.