org.duracloud.serviceconfig.xml
Class ServiceElementReader

java.lang.Object
  extended by org.duracloud.serviceconfig.xml.ServiceElementReader

public class ServiceElementReader
extends java.lang.Object

This class is responsible for binding service-config xml documents to ServiceInfo objects.

Author:
Andrew Woods Date: Nov 19, 2009

Constructor Summary
ServiceElementReader()
           
 
Method Summary
static ServiceInfo createServiceFrom(ServiceDocument doc)
          This method binds a single-service xml document to a single ServiceInfo object
static java.util.List<ServiceInfo> createServiceListFrom(ServicesDocument doc)
          This method binds a multi-service xml document to a list of ServiceInfo objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceElementReader

public ServiceElementReader()
Method Detail

createServiceListFrom

public static java.util.List<ServiceInfo> createServiceListFrom(ServicesDocument doc)
This method binds a multi-service xml document to a list of ServiceInfo objects

Parameters:
doc - service-config xml document
Returns:
list of ServiceInfo objects

createServiceFrom

public static ServiceInfo createServiceFrom(ServiceDocument doc)
This method binds a single-service xml document to a single ServiceInfo object

Parameters:
doc - service-config xml document
Returns:
single ServiceInfo object


Copyright © 2009-2010 DuraSpace. All Rights Reserved.