org.codeforamerica.open311.internals.platform
Class PlatformManager

java.lang.Object
  extended by org.codeforamerica.open311.internals.platform.PlatformManager

public class PlatformManager
extends Object

Builds some objects which implementation depends of the execution environment.

Author:
Santiago MunĂ­n

Method Summary
 Cache buildCache()
          Builds a cache instance taking care of the execution environment.
 Logger buildLogger()
          Builds a logger instance taking care of the execution environment.
static PlatformManager getInstance()
          Returns the unique instance of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PlatformManager getInstance()
Returns the unique instance of the class.

Returns:
The unique instance of the class.

buildCache

public Cache buildCache()
Builds a cache instance taking care of the execution environment.

Returns:
NoCache under Android, RegularJavaCache otherwise. AndroidCache has to be built explicitly.

buildLogger

public Logger buildLogger()
Builds a logger instance taking care of the execution environment.

Returns:
AndroidLogger under Android. RegularJavaLogger otherwise.


Copyright © 2013 Code for America. All Rights Reserved.