org.rhq.enterprise.server.jaxb
Class WebServiceTypeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object[],java.util.Map<java.lang.Integer,Configuration>>
      extended by org.rhq.enterprise.server.jaxb.WebServiceTypeAdapter

public class WebServiceTypeAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object[],java.util.Map<java.lang.Integer,Configuration>>

See the javadoc for the XmlAdapter itself for a more complete explanation, but simply put the adapter maps types that JAXB has difficulty serializing(Ex. Map) to java types that JAXB can actually serialize. From a JAXB perspective think of the problematic types as opaque to JAXB and the map to type in a marshal as the serializable type.

Author:
Simeon Pinder

Constructor Summary
WebServiceTypeAdapter()
           
 
Method Summary
 java.lang.Object[] marshal(java.util.Map<java.lang.Integer,Configuration> opaque)
           
 java.util.Map<java.lang.Integer,Configuration> unmarshal(java.lang.Object[] marshallable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceTypeAdapter

public WebServiceTypeAdapter()
Method Detail

marshal

public java.lang.Object[] marshal(java.util.Map<java.lang.Integer,Configuration> opaque)
                           throws java.lang.Exception
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object[],java.util.Map<java.lang.Integer,Configuration>>
Throws:
java.lang.Exception

unmarshal

public java.util.Map<java.lang.Integer,Configuration> unmarshal(java.lang.Object[] marshallable)
                                                         throws java.lang.Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Object[],java.util.Map<java.lang.Integer,Configuration>>
Throws:
java.lang.Exception


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.