es.ucm.look.data.remote.restful
Class ServiceManager

java.lang.Object
  extended by es.ucm.look.data.remote.restful.ServiceManager

public class ServiceManager
extends java.lang.Object

The ServiceManager is the one who connect the service and manage their Callbacks


Nested Class Summary
 class ServiceManager.RestfulServiceConnection
          To do the Connection in the service with the callbaks
 
Field Summary
 RemoteDataHandler restfulService
           
 
Constructor Summary
ServiceManager(Context context)
          Constructor class
 
Method Summary
 void bindService()
          To bind the Service
 void destroy()
          Destroy the service
 void setHandler(Handler handler)
          Set the handler to retrive the Callbacks to an application
 void startService()
          To start the service
 void stopService()
          To stop the service
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restfulService

public RemoteDataHandler restfulService
Constructor Detail

ServiceManager

public ServiceManager(Context context)
Constructor class

Parameters:
context - Context application
Method Detail

bindService

public void bindService()
To bind the Service


destroy

public void destroy()
Destroy the service


setHandler

public void setHandler(Handler handler)
Set the handler to retrive the Callbacks to an application

Parameters:
handler -

startService

public void startService()
To start the service


stopService

public void stopService()
To stop the service