|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.sisu.goodies.eventbus.internal.guava.EventHandler
public class EventHandler
Wraps a single-argument 'handler' method on a specific object.
This class only verifies the suitability of the method and event type if something fails. Callers are expected to verify their uses of this class.
Two EventHandlers are equivalent when they refer to the same method on the same object (not class). This property is used to ensure that no handler method is registered more than once.
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
void |
handleEvent(Object event)
Invokes the wrapped handler method to handle event . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void handleEvent(Object event) throws InvocationTargetException
event
.
event
- event to handle
InvocationTargetException
- if the wrapped method throws any
Throwable
that is not an Error
(Error
s are
propagated as-is).public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |