/** * 2011 Foxykeep (http://datadroid.foxykeep.com) * <p> * Licensed under the Beerware License : <br /> * As long as you retain this notice you can do whatever you want with this stuff. If we meet some * day, and you think this stuff is worth it, you can buy me a beer in return */ package com.foxykeep.datadroidpoc.data.requestmanager; import com.foxykeep.datadroid.requestmanager.RequestManager; import com.foxykeep.datadroidpoc.data.service.PoCRequestService; import android.content.Context; /** * This class is used as a proxy to call the Service. It provides easy-to-use methods to call the * service and manages the Intent creation. It also assures that a request will not be sent again if * an exactly identical one is already in progress. * * @author Foxykeep */ public final class PoCRequestManager extends RequestManager { // Singleton management private static PoCRequestManager sInstance; public synchronized static PoCRequestManager from(Context context) { if (sInstance == null) { sInstance = new PoCRequestManager(context); } return sInstance; } private PoCRequestManager(Context context) { super(context, PoCRequestService.class); } }