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.ServiceLocator
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected URL
    getAlternativeDomainXml(org.glassfish.server.ServerEnvironmentImpl env)
    Determines the alternative location of the domain.xml file
    protected URL
    getDomainXml(org.glassfish.server.ServerEnvironmentImpl env)
    Determines the location of domain.xml to be parsed.
    protected abstract org.jvnet.hk2.config.DomDocument
     
    protected boolean
     
    protected void
    parseDomainXml(org.jvnet.hk2.config.ConfigParser parser, URL domainXml, String serverName)
    Parses domain.xml
    void
    run(org.jvnet.hk2.config.ConfigParser parser)
     
    protected void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      run in interface org.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