org.glassfish.config.support
Interface ConfigurationPersistence


@Contract
public interface ConfigurationPersistence

Contract defining services capable of persisting the configuration.

Author:
Jerome Dochez

Method Summary
 void save(org.jvnet.hk2.config.DomDocument doc)
          callback when the new DomDocument instance should be saved to an external media like a file
 

Method Detail

save

void save(org.jvnet.hk2.config.DomDocument doc)
          throws java.io.IOException,
                 javax.xml.stream.XMLStreamException
callback when the new DomDocument instance should be saved to an external media like a file

Parameters:
doc - the new document instance
Throws:
java.io.IOException - if the file cannot be opened/written/closed
javax.xml.stream.XMLStreamException - if the xml cannot be written out successfully


Copyright © 2012 GlassFish Community. All Rights Reserved.