Back to project page security-cam.
The source code is released under:
MIT License
If you think the Android project security-cam listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package berlin.reiche.securitas.controller; // w ww . j a v a2s.co m import android.os.Handler; import android.os.Looper; import android.os.Message; /** * Inbox handler for implementing the infrastructure of a message oriented * observer pattern. * * @author Konrad Reiche * */ final class InboxHandler extends Handler { /** * The controller to which this inbox handler is associated to. The generic * type does not matter on this abstraction level. */ Controller<?> controller; /** * Default constructor. * * @param looper * Looper which used to run the message loop. * @param controller * the controller to which this inbox handler is associated to. */ InboxHandler(Looper looper, Controller<?> controller) { super(looper); this.controller = controller; } /** * Delegates the message to the controller's handle message method. */ @Override public void handleMessage(Message msg) { controller.handleMessage(msg); } }