org.rhq.enterprise.server.jaxb
Class WebServiceTypeAdapter

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

public class WebServiceTypeAdapter
extends XmlAdapter<Object[],Map<Integer,org.rhq.core.domain.configuration.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
 Object[] marshal(Map<Integer,org.rhq.core.domain.configuration.Configuration> opaque)
           
 Map<Integer,org.rhq.core.domain.configuration.Configuration> unmarshal(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 Object[] marshal(Map<Integer,org.rhq.core.domain.configuration.Configuration> opaque)
                 throws Exception
Specified by:
marshal in class XmlAdapter<Object[],Map<Integer,org.rhq.core.domain.configuration.Configuration>>
Throws:
Exception

unmarshal

public Map<Integer,org.rhq.core.domain.configuration.Configuration> unmarshal(Object[] marshallable)
                                                                       throws Exception
Specified by:
unmarshal in class XmlAdapter<Object[],Map<Integer,org.rhq.core.domain.configuration.Configuration>>
Throws:
Exception


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