com.sun.enterprise.v3.server
Class DomainXmlPersistence
java.lang.Object
com.sun.enterprise.v3.server.DomainXmlPersistence
- All Implemented Interfaces:
- ConfigurationAccess, ConfigurationPersistence
- Direct Known Subclasses:
- EmbeddedDomainPersistence
@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class DomainXmlPersistence
- extends Object
- implements ConfigurationPersistence, ConfigurationAccess
domain.xml persistence.
- Author:
- Jerome Dochez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
DomainXmlPersistence
public DomainXmlPersistence()
accessRead
public Lock accessRead()
throws IOException,
TimeoutException
- Specified by:
accessRead in interface ConfigurationAccess
- Throws:
IOException
TimeoutException
accessWrite
public Lock accessWrite()
throws IOException,
TimeoutException
- Specified by:
accessWrite in interface ConfigurationAccess
- Throws:
IOException
TimeoutException
save
public void save(org.jvnet.hk2.config.DomDocument doc)
throws IOException
- Specified by:
save in interface ConfigurationPersistence
- Throws:
IOException
touch
public void touch()
throws IOException
- Update the modified time of the persisted domain.xml so that
instances will detect it as changed.
This is for triggering instance synchronization to occur.
- Throws:
IOException
saved
protected void saved(File destination)
getDestination
protected File getDestination()
throws IOException
- Throws:
IOException
getOutputStream
protected OutputStream getOutputStream(File destination)
throws IOException
- Throws:
IOException
Copyright © 2012. All Rights Reserved.