com.sun.enterprise.v3.server
Class DomainXmlPersistence

java.lang.Object
  extended by 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

Field Summary
protected  Logger logger
           
 
Constructor Summary
DomainXmlPersistence()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
Constructor Detail

DomainXmlPersistence

public DomainXmlPersistence()
Method Detail

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.