Package org.glassfish.config.support
Class DomainXml
java.lang.Object
org.glassfish.config.support.DomainXml
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.DomDocumentprotected 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()
-
Field Details
-
habitat
@Inject protected org.glassfish.hk2.api.ServiceLocator habitat
-
-
Constructor Details
-
DomainXml
public DomainXml()
-
-
Method Details
-
getDomDocument
protected abstract org.jvnet.hk2.config.DomDocument getDomDocument() -
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
-
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
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
-