Class GsonFactory

java.lang.Object
com.amilesend.onedrive.parse.GsonFactory

public class GsonFactory extends Object
Factory that vends new pre-configured Gson instances.
  • Method Details

    • getInstance

      public static GsonFactory getInstance()
      Gets the singleton GsonFactory instance.
      Returns:
      the factory instance
    • getInstanceForAuthManager

      public com.google.gson.Gson getInstanceForAuthManager()
      Gets the Gson instance that is configured for use by AuthManager.
      Returns:
      the pre-configured Gson instance
    • getInstanceForStateManager

      public com.google.gson.Gson getInstanceForStateManager()
      Gets the Gson instance that is configured for use by OneDriveFactoryStateManager.
      Returns:
      the pre-configured Gson instance
    • getInstanceForServiceDiscovery

      public com.google.gson.Gson getInstanceForServiceDiscovery()
      Gets the Gson instance that is configured for use by BusinessAccountAuthManager.
      Returns:
      the pre-configured Gson instance
    • newInstanceForConnection

      public com.google.gson.Gson newInstanceForConnection(OneDriveConnection oneDriveConnection)
      Gets a new Gson instance that is configured for use by OneDriveConnection.
      Returns:
      the pre-configured Gson instance