Package org.glassfish.kernel.embedded
Class EmbeddedDomainPersistence
- java.lang.Object
-
- com.sun.enterprise.v3.server.DomainXmlPersistence
-
- org.glassfish.kernel.embedded.EmbeddedDomainPersistence
-
- All Implemented Interfaces:
ConfigurationAccess,ConfigurationPersistence
public class EmbeddedDomainPersistence extends DomainXmlPersistence
Configuration file persistence handler for embedded- Author:
- Jerome Dochez, bhavanishankar@dev.java.net
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.v3.server.DomainXmlPersistence
logger
-
-
Constructor Summary
Constructors Constructor Description EmbeddedDomainPersistence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FilegetDestination()Returns the destination file for saving the embedded configuration file, when set.voidsave(DomDocument doc)callback when the newDomDocumentinstance should be saved to an external media like a fileprotected voidsaved(File destination)-
Methods inherited from class com.sun.enterprise.v3.server.DomainXmlPersistence
accessRead, accessWrite, getOutputStream, touch
-
-
-
-
Method Detail
-
getDestination
protected File getDestination() throws IOException
Returns the destination file for saving the embedded configuration file, when set.- Overrides:
getDestinationin classDomainXmlPersistence- Returns:
- the embedded configuration file if set in read-write mode.
- Throws:
IOException
-
save
public void save(DomDocument doc) throws IOException
Description copied from interface:ConfigurationPersistencecallback when the newDomDocumentinstance should be saved to an external media like a file- Specified by:
savein interfaceConfigurationPersistence- Overrides:
savein classDomainXmlPersistence- Parameters:
doc- the new document instance- Throws:
IOException- if the file cannot be opened/written/closed
-
saved
protected void saved(File destination)
- Overrides:
savedin classDomainXmlPersistence
-
-