org.jclouds.softlayer.config
Class SoftLayerParserModule.VirtualGuestAdapter
java.lang.Object
org.jclouds.softlayer.config.SoftLayerParserModule.VirtualGuestAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<VirtualGuest>, com.google.gson.JsonSerializer<VirtualGuest>
- Enclosing class:
- SoftLayerParserModule
@Singleton
public static class SoftLayerParserModule.VirtualGuestAdapter
- extends Object
- implements com.google.gson.JsonSerializer<VirtualGuest>, com.google.gson.JsonDeserializer<VirtualGuest>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoftLayerParserModule.VirtualGuestAdapter
public SoftLayerParserModule.VirtualGuestAdapter()
serialize
public com.google.gson.JsonElement serialize(VirtualGuest src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<VirtualGuest>
deserialize
public VirtualGuest deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interface com.google.gson.JsonDeserializer<VirtualGuest>
- Throws:
com.google.gson.JsonParseException
apply
public VirtualGuest apply(SoftLayerParserModule.VirtualGuestAdapter.VirtualGuestInternal in)
Copyright © 2009-2012 jclouds. All Rights Reserved.