public class ServiceConfigurationSerializationHandler extends Object
ServiceConfiguration
classes. Coming into Rice 2.0, there is not a
"pluggable" spi for dealing with custom service configurations, definitions,
connectors, and exporters. So for now everything is hardcoded and this
class creates a hardcoded JAXBContext to perform marshalling/unmarshalling
of the standard ServiceConfiguration
classes.
NOTE: JAXBContext is thread-safe, but marshaller/unmarshaller are *NOT* thread-safe.
Constructor and Description |
---|
ServiceConfigurationSerializationHandler() |
Modifier and Type | Method and Description |
---|---|
static String |
marshallToXml(ServiceConfiguration serviceConfiguration) |
static ServiceConfiguration |
unmarshallFromXml(String xml) |
public ServiceConfigurationSerializationHandler()
public static String marshallToXml(ServiceConfiguration serviceConfiguration)
public static ServiceConfiguration unmarshallFromXml(String xml)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.