org.jclouds.cloudstack.config
Class CloudStackParserModule.LoadBalancerRuleAdapter

java.lang.Object
  extended by org.jclouds.cloudstack.config.CloudStackParserModule.LoadBalancerRuleAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<LoadBalancerRule>, com.google.gson.JsonSerializer<LoadBalancerRule>
Enclosing class:
CloudStackParserModule

@Singleton
public static class CloudStackParserModule.LoadBalancerRuleAdapter
extends Object
implements com.google.gson.JsonSerializer<LoadBalancerRule>, com.google.gson.JsonDeserializer<LoadBalancerRule>


Constructor Summary
CloudStackParserModule.LoadBalancerRuleAdapter()
           
 
Method Summary
 LoadBalancerRule apply(org.jclouds.cloudstack.config.CloudStackParserModule.LoadBalancerRuleAdapter.LoadBalancerRuleInternal in)
           
 LoadBalancerRule deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(LoadBalancerRule src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudStackParserModule.LoadBalancerRuleAdapter

public CloudStackParserModule.LoadBalancerRuleAdapter()
Method Detail

serialize

public com.google.gson.JsonElement serialize(LoadBalancerRule src,
                                             Type typeOfSrc,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<LoadBalancerRule>

deserialize

public LoadBalancerRule 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<LoadBalancerRule>
Throws:
com.google.gson.JsonParseException

apply

public LoadBalancerRule apply(org.jclouds.cloudstack.config.CloudStackParserModule.LoadBalancerRuleAdapter.LoadBalancerRuleInternal in)


Copyright © 2009-2012 jclouds. All Rights Reserved.