Package org.jclouds.json.config
Class GsonModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.json.config.GsonModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class GsonModule extends com.google.inject.AbstractModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GsonModule.ByteArrayAdapter
static class
GsonModule.ByteListAdapter
static class
GsonModule.CDateAdapter
static class
GsonModule.CredentialsAdapterFactory
Special cases serialization for LoginCredentials and normalizes all others.static class
GsonModule.DateAdapter
static interface
GsonModule.DefaultExclusionStrategy
static class
GsonModule.HexByteArrayAdapter
static class
GsonModule.HexByteListAdapter
static class
GsonModule.Iso8601DateAdapter
static class
GsonModule.JsonAdapterBindings
static class
GsonModule.LongDateAdapter
static class
GsonModule.NoExclusions
static class
GsonModule.NullHackJsonBallAdapter
static class
GsonModule.PropertiesAdapter
-
Constructor Summary
Constructors Constructor Description GsonModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected com.google.gson.TypeAdapter<JsonBall>
provideJsonBallAdapter(GsonModule.NullHackJsonBallAdapter in)
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
provideJsonBallAdapter
@Provides @Singleton protected final com.google.gson.TypeAdapter<JsonBall> provideJsonBallAdapter(GsonModule.NullHackJsonBallAdapter in)
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
-