roboguice.event.eventListener
Class AsynchronousEventListenerDecorator<T>

java.lang.Object
  extended by roboguice.event.eventListener.AsynchronousEventListenerDecorator<T>
All Implemented Interfaces:
EventListener<T>

public class AsynchronousEventListenerDecorator<T>
extends Object
implements EventListener<T>

Event Listener Decorator class. This decorator executes the event listener through the SafeAsyncTask functionality.

Author:
John Ericksen

Field Summary
protected  EventListener<T> eventListener
           
protected  android.os.Handler handler
           
 
Constructor Summary
AsynchronousEventListenerDecorator(EventListener<T> eventListener)
           
AsynchronousEventListenerDecorator(android.os.Handler handler, EventListener<T> eventListener)
           
 
Method Summary
 void onEvent(T event)
          Method called when event T is triggered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventListener

protected EventListener<T> eventListener

handler

protected android.os.Handler handler
Constructor Detail

AsynchronousEventListenerDecorator

public AsynchronousEventListenerDecorator(EventListener<T> eventListener)

AsynchronousEventListenerDecorator

public AsynchronousEventListenerDecorator(android.os.Handler handler,
                                          EventListener<T> eventListener)
Method Detail

onEvent

public void onEvent(T event)
Description copied from interface: EventListener
Method called when event T is triggered.

Specified by:
onEvent in interface EventListener<T>
Parameters:
event - fired


Copyright © 2012. All Rights Reserved.