@Service @Singleton public class DomainXmlPersistence extends Object implements org.glassfish.config.support.ConfigurationPersistence, org.glassfish.config.support.ConfigurationAccess
| Constructor and Description |
|---|
DomainXmlPersistence() |
| Modifier and Type | Method and Description |
|---|---|
Lock |
accessRead() |
Lock |
accessWrite() |
protected File |
getDestination() |
protected OutputStream |
getOutputStream(File destination) |
void |
save(org.jvnet.hk2.config.DomDocument doc) |
protected void |
saved(File destination) |
void |
touch()
Update the modified time of the persisted domain.xml so that
instances will detect it as changed.
|
@Inject protected Logger logger
public Lock accessRead() throws IOException, TimeoutException
accessRead in interface org.glassfish.config.support.ConfigurationAccessIOExceptionTimeoutExceptionpublic Lock accessWrite() throws IOException, TimeoutException
accessWrite in interface org.glassfish.config.support.ConfigurationAccessIOExceptionTimeoutExceptionpublic void save(org.jvnet.hk2.config.DomDocument doc)
throws IOException
save in interface org.glassfish.config.support.ConfigurationPersistenceIOExceptionpublic void touch()
throws IOException
IOExceptionprotected void saved(File destination)
protected File getDestination() throws IOException
IOExceptionprotected OutputStream getOutputStream(File destination) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.