org.jclouds.openstack.keystone.v2_0.config
Class KeystoneParserModule.SetTypeAdapterFactory

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.config.KeystoneParserModule.SetTypeAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
Enclosing class:
KeystoneParserModule

public static class KeystoneParserModule.SetTypeAdapterFactory
extends Object
implements com.google.gson.TypeAdapterFactory

Handles the goofy structures with "values" holder wrapping an array http://docs.openstack.org/api/openstack-identity-service/2.0/content/Versions-d1e472.html

Treats [A,B,C] and {"values"=[A,B,C], "someotherstuff"=...} as the same Set


Constructor Summary
KeystoneParserModule.SetTypeAdapterFactory()
           
 
Method Summary
<T> com.google.gson.TypeAdapter<T>
create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> typeToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeystoneParserModule.SetTypeAdapterFactory

public KeystoneParserModule.SetTypeAdapterFactory()
Method Detail

create

public <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson,
                                                 com.google.gson.reflect.TypeToken<T> typeToken)
Specified by:
create in interface com.google.gson.TypeAdapterFactory


Copyright © 2009-2013 jclouds. All Rights Reserved.