de.unikassel.android.sdcframework.util.facade
Interface TimeProviderErrorStrategy

Package class diagram package TimeProviderErrorStrategy
All Known Implementing Classes:
AbstractTimeProviderErrorStrategy, ShutdownStrategy, TimeProviderOutOfSyncIgnoreStrategy

public interface TimeProviderErrorStrategy

Interface for strategies to handle time provider failures.


Method Summary
 void finalize(Context context)
          Does finalize the strategy.
 TimeProviderErrorStrategyDescription getDescription()
          Getter for the unique identifier/description type
 boolean handleTimeErrorEvent(TimeErrorEvent event, ServiceManager serviceManager)
          Handler for error events (e.g.
 void prepare(Context context)
          Does prepare the strategy.
 

Method Detail

handleTimeErrorEvent

boolean handleTimeErrorEvent(TimeErrorEvent event,
                             ServiceManager serviceManager)
Handler for error events (e.g. time provider out of sync)

Parameters:
event - the error event
serviceManager - the service manager
Returns:
true if the error was handled properly, false otherwise

getDescription

TimeProviderErrorStrategyDescription getDescription()
Getter for the unique identifier/description type

Returns:
the description type

prepare

void prepare(Context context)
Does prepare the strategy.

Parameters:
context - the application context

finalize

void finalize(Context context)
Does finalize the strategy.

Parameters:
context - the application context