Package com.amilesend.onedrive.parse
Class GsonFactory
java.lang.Object
com.amilesend.client.parse.GsonFactoryBase<OneDriveConnection>
com.amilesend.onedrive.parse.GsonFactory
Factory that vends new pre-configured
Gson
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.Gson
Gets theGson
instance that is configured for use byOneDriveAuthManager
.static com.google.gson.Gson
Gets theGson
instance that is configured for use byBusinessAccountAuthManager
.static com.google.gson.Gson
Gets theGson
instance that is configured for use byOneDriveFactoryStateManager
.Methods inherited from class com.amilesend.client.parse.GsonFactoryBase
clear, clearAll, getInstance, getInstanceForPrettyPrinting
-
Constructor Details
-
GsonFactory
public GsonFactory()
-
-
Method Details
-
getInstanceForAuthManager
public static com.google.gson.Gson getInstanceForAuthManager()Gets theGson
instance that is configured for use byOneDriveAuthManager
.- Returns:
- the pre-configured Gson instance
-
getInstanceForStateManager
public static com.google.gson.Gson getInstanceForStateManager()Gets theGson
instance that is configured for use byOneDriveFactoryStateManager
.- Returns:
- the pre-configured Gson instance
-
getInstanceForServiceDiscovery
public static com.google.gson.Gson getInstanceForServiceDiscovery()Gets theGson
instance that is configured for use byBusinessAccountAuthManager
.- Returns:
- the pre-configured Gson instance
-