Class AbstractGlassFishStandaloneLocalConfiguration

    • Constructor Detail

      • AbstractGlassFishStandaloneLocalConfiguration

        public AbstractGlassFishStandaloneLocalConfiguration​(String home)
        Creates the local configuration object.
        Parameters:
        home - The work directory where files needed to run GlassFish will be created.
    • Method Detail

      • doConfigure

        protected void doConfigure​(LocalContainer container)
                            throws Exception
        Creates a new domain and set up the workspace by invoking the "asadmin" command. Implementation of LocalConfiguration.configure(LocalContainer) that all local configuration using this class must implement. This provides the ability to perform generic actions before and after the container-specific implementation. Another way would be to use AOP...
        Specified by:
        doConfigure in class AbstractLocalConfiguration
        Parameters:
        container - the container to configure
        Throws:
        Exception - if any error is raised during the configuration
      • getPropertyValueString

        protected String getPropertyValueString​(String key)
        Returns a system property value string.
        Parameters:
        key - Key to look for.
        Returns:
        Associated value.
      • configureUsingAsAdmin

        protected abstract int configureUsingAsAdmin​(AbstractGlassFishInstalledLocalContainer abstractGlassFishInstalledLocalContainer)
        Configures the domain using asadmin.
        Parameters:
        abstractGlassFishInstalledLocalContainer - GlassFish container.
        Returns:
        Whatever asadmin returned.