org.duracloud.serviceconfig.xml
Class ServiceListDocumentBinding
java.lang.Object
org.duracloud.serviceconfig.xml.ServiceListDocumentBinding
public class ServiceListDocumentBinding
- extends Object
This class is a helper utility for binding multiple ServiceInfo objects to a
multi-service xml config document.
- Author:
- Andrew Woods
Date: Nov 17, 2009
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceListDocumentBinding
public ServiceListDocumentBinding()
createServiceListFrom
public static List<ServiceInfo> createServiceListFrom(InputStream xml)
- This method binds a list of ServiceInfo objects to the content of the arg
multi-service xml.
- Parameters:
xml - multi-service document to be bound to ServiceInfo objects
- Returns:
- list of ServiceInfo objects
createDocumentFrom
public static ServicesDocument createDocumentFrom(List<ServiceInfo> serviceList)
- This method serializes a list of ServiceInfo objects into a
multi-service-config xml document.
- Parameters:
serviceList - list of ServiceInfo objects to be serialized
- Returns:
- multi-service xml document
Copyright © 2009-2012 DuraSpace. All Rights Reserved.