org.jclouds.json.config
Class GsonModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.json.config.GsonModule
All Implemented Interfaces:
com.google.inject.Module

public class GsonModule
extends com.google.inject.AbstractModule

Contains logic for parsing objects from Strings.

Author:
Adrian Cole

Nested Class Summary
static class GsonModule.ByteArrayAdapter
           
static class GsonModule.ByteListAdapter
           
static class GsonModule.CDateAdapter
           
static class GsonModule.DateAdapter
           
static class GsonModule.HexByteArrayAdapter
           
static class GsonModule.HexByteListAdapter
           
static class GsonModule.Iso8601DateAdapter
           
static class GsonModule.JsonAdapterBindings
           
static class GsonModule.LongDateAdapter
           
static class GsonModule.NullHackJsonBallAdapter
           
static class GsonModule.PropertiesAdapter
           
 
Constructor Summary
GsonModule()
           
 
Method Summary
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, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsonModule

public GsonModule()
Method Detail

provideJsonBallAdapter

@Provides
@Singleton
protected com.google.gson.TypeAdapter<JsonBall> provideJsonBallAdapter(GsonModule.NullHackJsonBallAdapter in)

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule


Copyright © 2009-2012 jclouds. All Rights Reserved.