Class OSGiDeployer

    • Constructor Detail

      • OSGiDeployer

        public OSGiDeployer()
    • Method Detail

      • load

        public OSGiDeployedBundle load​(OSGiContainer container,
                                       DeploymentContext context)
        Description copied from interface: Deployer
        Loads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime.
        Specified by:
        load in interface Deployer<OSGiContainer,​OSGiDeployedBundle>
        Parameters:
        container - in which the application will reside
        context - of the deployment
        Returns:
        an ApplicationContainer instance identifying the running application
      • unload

        public void unload​(OSGiDeployedBundle 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<OSGiContainer,​OSGiDeployedBundle>
        Parameters:
        appContainer - instance to be stopped
        context - of the undeployment
      • 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<OSGiContainer,​OSGiDeployedBundle>
        Parameters:
        context - of the deployment
        Returns:
        true if the prepare phase executed successfully