Class GrizzlyDeployer

    • Constructor Detail

      • GrizzlyDeployer

        public GrizzlyDeployer()
    • Method Detail

      • loadMetaData

        public <V> V loadMetaData​(Class<V> type,
                                  DeploymentContext context)
        Description copied from interface: Deployer
        Loads the meta date associated with the application.
        Specified by:
        loadMetaData in interface Deployer<GrizzlyContainer,​GrizzlyApp>
        Parameters:
        type - type of meta-data that this deployer has declared providing.
        Returns:
        the meta-data of type V
      • prepare

        public boolean prepare​(DeploymentContext context)
        Description copied from interface: Deployer
        Prepares the application bits for running in the application server. For certain cases, this is generating non portable artifacts and other application specific tasks. Failure to prepare should throw an exception which will cause the overall deployment to fail.
        Specified by:
        prepare in interface Deployer<GrizzlyContainer,​GrizzlyApp>
        Parameters:
        context - of the deployment
        Returns:
        true if the prepare phase executed successfully
      • unload

        public void unload​(GrizzlyApp appContainer,
                           DeploymentContext context)
        Description copied from interface: Deployer
        Unload or stop a previously running application identified with the ContractProvider instance. The container will be stop upon return from this method.
        Specified by:
        unload in interface Deployer<GrizzlyContainer,​GrizzlyApp>
        Parameters:
        appContainer - instance to be stopped
        context - of the undeployment