com.eurotech.framework.core.configuration
Class XmlConfigPropertiesAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<XmlConfigPropertiesAdapted,Map<String,Object>>
      extended by com.eurotech.framework.core.configuration.XmlConfigPropertiesAdapter

public class XmlConfigPropertiesAdapter
extends XmlAdapter<XmlConfigPropertiesAdapted,Map<String,Object>>

Helper class to serialize a set of properties in XML.


Constructor Summary
XmlConfigPropertiesAdapter()
           
 
Method Summary
 XmlConfigPropertiesAdapted marshal(Map<String,Object> props)
           
 Map<String,Object> unmarshal(XmlConfigPropertiesAdapted adaptedPropsAdapted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConfigPropertiesAdapter

public XmlConfigPropertiesAdapter()
Method Detail

marshal

public XmlConfigPropertiesAdapted marshal(Map<String,Object> props)
                                   throws Exception
Specified by:
marshal in class XmlAdapter<XmlConfigPropertiesAdapted,Map<String,Object>>
Throws:
Exception

unmarshal

public Map<String,Object> unmarshal(XmlConfigPropertiesAdapted adaptedPropsAdapted)
                             throws Exception
Specified by:
unmarshal in class XmlAdapter<XmlConfigPropertiesAdapted,Map<String,Object>>
Throws:
Exception


Copyright © 2013. All Rights Reserved.