Class 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 Detail

      • habitat

        @Inject
        protected org.glassfish.hk2.api.ServiceLocator habitat
    • Constructor Detail

      • DomainXml

        public DomainXml()
    • Method Detail

      • 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
      • getDomDocument

        protected abstract org.jvnet.hk2.config.DomDocument getDomDocument()