roboguice.receiver
Class RoboBroadcastReceiver

java.lang.Object
  extended by android.content.BroadcastReceiver
      extended by roboguice.receiver.RoboBroadcastReceiver

public abstract class RoboBroadcastReceiver
extends android.content.BroadcastReceiver

To ensure proper ContextScope usage, override the handleReceive method


Field Summary
protected  ContextScope scope
           
 
Constructor Summary
RoboBroadcastReceiver()
           
 
Method Summary
protected  void handleReceive(android.content.Context context, android.content.Intent intent)
          Template method that should be overridden to handle the broadcast event Using this method ensures that the proper ContextScope is maintained before and after the execution of the receiver.
 void onReceive(android.content.Context context, android.content.Intent intent)
          Handles the receive event.
 
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scope

protected ContextScope scope
Constructor Detail

RoboBroadcastReceiver

public RoboBroadcastReceiver()
Method Detail

onReceive

public final void onReceive(android.content.Context context,
                            android.content.Intent intent)
Handles the receive event. This method should not be overridden, instead override the handleReceive method to ensure that the proper ContextScope is maintained.

Specified by:
onReceive in class android.content.BroadcastReceiver
Parameters:
context -
intent -

handleReceive

protected void handleReceive(android.content.Context context,
                             android.content.Intent intent)
Template method that should be overridden to handle the broadcast event Using this method ensures that the proper ContextScope is maintained before and after the execution of the receiver.

Parameters:
context -
intent -


Copyright © 2011. All Rights Reserved.