oracle.stellent.ridc.config
Interface ConfigurationSerializer<T extends IdcClientConfig>

All Known Implementing Classes:
XmlConfigurationSerializer

public interface ConfigurationSerializer<T extends IdcClientConfig>

Serialize the configuration of the clients in the given IdcClientManager objects.


Method Summary
 IdcClientManager readConfiguration(java.io.InputStream stream)
          Read the configuration from an XML stream
 void serializeConfiguration(java.io.OutputStream stream, IdcClientManager clientManager)
          Serialize the clients in the IdcClientManager to an XML stream
 

Method Detail

readConfiguration

IdcClientManager readConfiguration(java.io.InputStream stream)
                                   throws IdcClientException
Read the configuration from an XML stream

Parameters:
stream - the XML stream
Returns:
a new IdcClientManager with the clients initialized
Throws:
ConfigurationException
IdcClientException

serializeConfiguration

void serializeConfiguration(java.io.OutputStream stream,
                            IdcClientManager clientManager)
                            throws ConfigurationException
Serialize the clients in the IdcClientManager to an XML stream

Parameters:
stream - the output stream to write the XML
clientManager - the client manager instance to persist
Throws:
ConfigurationException


Copyright © 2008-2009 Oracle Corporation. All Rights Reserved.