org.rhq.enterprise.server.jaxb.adapter
Class ConfigurationAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,org.rhq.core.domain.configuration.Configuration>
org.rhq.enterprise.server.jaxb.adapter.ConfigurationAdapter
public class ConfigurationAdapter
- extends XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,org.rhq.core.domain.configuration.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
|
Method Summary |
org.rhq.enterprise.server.jaxb.adapter.WsConfiguration |
marshal(org.rhq.core.domain.configuration.Configuration opaque)
Converts a Configuration type back to marshallable JAXB type. |
org.rhq.core.domain.configuration.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 |
ConfigurationAdapter
public ConfigurationAdapter()
marshal
public org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshal(org.rhq.core.domain.configuration.Configuration opaque)
throws Exception
- Converts a Configuration type back to marshallable JAXB type.
- Specified by:
marshal in class XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,org.rhq.core.domain.configuration.Configuration>
- Throws:
Exception
unmarshal
public org.rhq.core.domain.configuration.Configuration unmarshal(org.rhq.enterprise.server.jaxb.adapter.WsConfiguration marshallable)
throws Exception
- Converts the WsConfiguration type back into familiar Configuration type on server side.
- Specified by:
unmarshal in class XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsConfiguration,org.rhq.core.domain.configuration.Configuration>
- Throws:
Exception
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.