Class AbstractGlassFishInstalledLocalDeployer

    • Constructor Detail

      • AbstractGlassFishInstalledLocalDeployer

        public AbstractGlassFishInstalledLocalDeployer​(InstalledLocalContainer localContainer)
        Calls parent constructor, which saves the container.
        Parameters:
        localContainer - Container.
    • Method Detail

      • getType

        public DeployerType getType()
        Returns:
        the deployer's type (local, remote, etc)
      • doDeploy

        protected abstract void doDeploy​(Deployable deployable,
                                         boolean overwrite)
        Does the actual deployment.
        Parameters:
        deployable - Deployable to deploy.
        overwrite - Whether to overwrite.
      • deployDatasource

        public abstract void deployDatasource​(DataSource dataSource)
        Deploy a datasource.
        Parameters:
        dataSource - Datasource to deploy.
      • undeployDatasource

        public abstract void undeployDatasource​(String poolName,
                                                String jdbcName)
        Undeploy a datasource.
        Parameters:
        poolName - Pool name of datasource to undeploy.
        jdbcName - JNDI name of datasource to undeploy.
      • deployResource

        public abstract void deployResource​(Resource resource)
        Deploy a resource. There is no undeployResource inverse function.
        Parameters:
        resource - resource to deploy.
      • cutExtension

        protected String cutExtension​(String name)
        Returns a filename without its extension.
        Parameters:
        name - Filename.
        Returns:
        Filename without its extension.
      • addConnectOptions

        protected void addConnectOptions​(List<String> args)
        Adds connection options.
        Parameters:
        args - List to add to.
      • createFileUser

        public abstract void createFileUser​(User user)
        Calls create-file-user via asadmin to register a user.
        Parameters:
        user - user to register
      • activateDefaultPrincipalToRoleMapping

        public abstract void activateDefaultPrincipalToRoleMapping()
        Activates the default principal to role mapping. This allows groups defined in cargo.servlet.users to be used as the roles for the application.