Package org.glassfish.config.support
Class DomainXml
- java.lang.Object
-
- org.glassfish.config.support.DomainXml
-
- All Implemented Interfaces:
org.jvnet.hk2.config.Populator
public abstract class DomainXml extends Object implements org.jvnet.hk2.config.Populator
Locates and parses the portion of domain.xml that we care.- Author:
- Jerome Dochez, Kohsuke Kawaguchi, Byron Nevins
-
-
Field Summary
Fields Modifier and Type Field Description protected org.glassfish.hk2.api.ServiceLocatorhabitat
-
Constructor Summary
Constructors Constructor Description DomainXml()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddecorate()protected URLgetAlternativeDomainXml(org.glassfish.server.ServerEnvironmentImpl env)Determines the alternative location of the domain.xml fileprotected URLgetDomainXml(org.glassfish.server.ServerEnvironmentImpl env)Determines the location of domain.xml to be parsed.protected abstract org.jvnet.hk2.config.DomDocumentgetDomDocument()protected booleanisBackupFile(URL url)protected voidparseDomainXml(org.jvnet.hk2.config.ConfigParser parser, URL domainXml, String serverName)Parses domain.xmlvoidrun(org.jvnet.hk2.config.ConfigParser parser)protected voidupgrade()
-
-
-
Method Detail
-
run
public void run(org.jvnet.hk2.config.ConfigParser parser) throws org.jvnet.hk2.config.ConfigPopulatorException- Specified by:
runin interfaceorg.jvnet.hk2.config.Populator- Throws:
org.jvnet.hk2.config.ConfigPopulatorException
-
isBackupFile
protected boolean isBackupFile(URL url)
-
decorate
protected void decorate()
-
upgrade
protected void upgrade()
-
getAlternativeDomainXml
protected URL getAlternativeDomainXml(org.glassfish.server.ServerEnvironmentImpl env) throws IOException
Determines the alternative location of the domain.xml file- Throws:
IOException
-
getDomainXml
protected URL getDomainXml(org.glassfish.server.ServerEnvironmentImpl env) throws IOException
Determines the location of domain.xml to be parsed.- Throws:
IOException
-
parseDomainXml
protected void parseDomainXml(org.jvnet.hk2.config.ConfigParser parser, URL domainXml, String serverName)Parses domain.xml
-
getDomDocument
protected abstract org.jvnet.hk2.config.DomDocument getDomDocument()
-
-