de.unikassel.android.sdcframework.persistence
Class StopServiceStrategy
java.lang.Object
de.unikassel.android.sdcframework.util.AbstractChainWorker<PersistentStorageManager>
de.unikassel.android.sdcframework.persistence.AbstractDatabaseFullStrategy
de.unikassel.android.sdcframework.persistence.StopServiceStrategy
- All Implemented Interfaces:
- DatabaseFullStrategy, ChainWorker<PersistentStorageManager>
public class StopServiceStrategy
- extends AbstractDatabaseFullStrategy
Implementation of a the database full strategy which does stop the running
service.
This strategy does stop the running data collection service. It should always
be the last strategy in a chain. To notify the user a
NotificationStrategy should be one of it's predecessors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private final Context context
- The application context
serviceClass
private final Class<? extends SDCService> serviceClass
- The service class
StopServiceStrategy
public StopServiceStrategy(Context context,
Class<? extends SDCService> serviceClass)
- Constructor
- Parameters:
context
- the application contextserviceClass
- the service class
process
public boolean process(PersistentStorageManager storageManager)
- Description copied from class:
AbstractChainWorker
- Processing method of the worker
- Overrides:
process
in class AbstractDatabaseFullStrategy
- Parameters:
storageManager
- the client
- Returns:
- true if successful