org.rhq.enterprise.server.jaxb.adapter
Class ResourceListAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper,List<org.rhq.core.domain.resource.Resource>>
org.rhq.enterprise.server.jaxb.adapter.ResourceListAdapter
public class ResourceListAdapter
- extends XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper,List<org.rhq.core.domain.resource.Resource>>
This adapter is a JAXB wrapper for the Resource class.
Problematic field on resource: Resource.parentResource
Resource.List
- Author:
- Simeon Pinder
|
Method Summary |
org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper |
marshal(List<org.rhq.core.domain.resource.Resource> opaque)
Converts a Resource type back to marshallable JAXB type. |
List<org.rhq.core.domain.resource.Resource> |
unmarshal(org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper marshallable)
Converts the WsResource type back into familiar Resource type on server side. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceListAdapter
public ResourceListAdapter()
marshal
public org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper marshal(List<org.rhq.core.domain.resource.Resource> opaque)
throws Exception
- Converts a Resource type back to marshallable JAXB type.
- Specified by:
marshal in class XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper,List<org.rhq.core.domain.resource.Resource>>
- Throws:
Exception
unmarshal
public List<org.rhq.core.domain.resource.Resource> unmarshal(org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper marshallable)
throws Exception
- Converts the WsResource type back into familiar Resource type on server side.
TODO: not sure we need this at all as there would have to be a reason to turn
WsResource back into a List. Problem is one way for now.
- Specified by:
unmarshal in class XmlAdapter<org.rhq.enterprise.server.jaxb.adapter.WsResourceListWrapper,List<org.rhq.core.domain.resource.Resource>>
- Throws:
Exception
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.