roboguice.event.eventListener
Class ObserverMethodListener<T>
java.lang.Object
roboguice.event.eventListener.ObserverMethodListener<T>
- All Implemented Interfaces:
- EventListener<T>
public class ObserverMethodListener<T>
- extends Object
- implements EventListener<T>
Observer Method Event Listener. This class calls to the method on the given instance during onEvent().
- Author:
- Adam Tybor, John Ericksen
descriptor
protected String descriptor
method
protected Method method
instance
protected Object instance
ObserverMethodListener
public ObserverMethodListener(Object instance,
Method method)
onEvent
public void onEvent(Object event)
- Description copied from interface:
EventListener
- Method called when event T is triggered.
- Specified by:
onEvent
in interface EventListener<T>
- Parameters:
event
- fired
getInstance
public Object getInstance()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2012. All Rights Reserved.