org.rhq.enterprise.server.jaxb.adapter
Class ConfigurationAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,Configuration>
      extended by org.rhq.enterprise.server.jaxb.adapter.ConfigurationAdapter

public class ConfigurationAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,Configuration>

This adapter is a JAXB wrapper for the Configuration class. JAXB works with JavaBeans and Configuration does not adhere to those conventions strictly and creates wrapper types on the fly which JAXB has difficulty with. This means that on the Webservice side instead of Configuration JAXB types there necessarily has to be WsConfiguration alternative types.

Author:
Simeon Pinder

Constructor Summary
ConfigurationAdapter()
           
 
Method Summary
 org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshal(Configuration opaque)
          Converts a Configuration type back to marshallable JAXB type.
 Configuration unmarshal(org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshallable)
          Converts the WsConfiguration type back into familiar Configuration type on server side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationAdapter

public ConfigurationAdapter()
Method Detail

marshal

public org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshal(Configuration opaque)
                                                               throws java.lang.Exception
Converts a Configuration type back to marshallable JAXB type.

Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,Configuration>
Throws:
java.lang.Exception

unmarshal

public Configuration unmarshal(org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshallable)
                        throws java.lang.Exception
Converts the WsConfiguration type back into familiar Configuration type on server side.

Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,Configuration>
Throws:
java.lang.Exception


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