Class EarDeployer

  • All Implemented Interfaces:
    Deployer

    @Service
    @PerLookup
    public class EarDeployer
    extends Object
    implements Deployer
    EarDeployer to deploy composite Java EE applications. todo : could be generified into any composite applications.
    Author:
    Jerome Dochez
    • Field Detail

      • deplLogger

        public static final Logger deplLogger
    • Constructor Detail

      • EarDeployer

        public EarDeployer()
    • Method Detail

      • getMetaData

        public MetaData getMetaData()
        Description copied from interface: Deployer
        Returns the meta data associated with this Deployer
        Specified by:
        getMetaData in interface Deployer
        Returns:
        the meta data for this Deployer
      • loadMetaData

        public Object loadMetaData​(Class type,
                                   DeploymentContext context)
        Description copied from interface: Deployer
        Loads the meta date associated with the application.
        Specified by:
        loadMetaData in interface Deployer
        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
        Parameters:
        context - of the deployment
        Returns:
        true if the prepare phase executed successfully
      • load

        public ApplicationContainer load​(Container 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
        Parameters:
        container - in which the application will reside
        context - of the deployment
        Returns:
        an ApplicationContainer instance identifying the running application
      • unload

        public void unload​(ApplicationContainer 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
        Parameters:
        appContainer - instance to be stopped
        context - of the undeployment
      • clean

        public void clean​(DeploymentContext context)
        Description copied from interface: Deployer
        Clean any files and artifacts that were created during the execution of the prepare method.
        Specified by:
        clean in interface Deployer
        Parameters:
        context - deployment context