Class GlassFishWebAppDeployer

  • All Implemented Interfaces:
    WebAppDeployer

    public class GlassFishWebAppDeployer
    extends Object
    implements WebAppDeployer
    The class which implements the WebAppDeployer interface to provide the deployment and undeployment functionality for Portlets on GlassFish container.
    • Constructor Detail

      • GlassFishWebAppDeployer

        public GlassFishWebAppDeployer()
                                throws Exception
        Initialize the autoDeployDirectory by reading the configuration data from the config file.
        Throws:
        Exception
    • Method Detail

      • deploy

        public boolean deploy​(String warFileName)
                       throws WebAppDeployerException
        Provides the implementation of deploying Portlet war on GlassFish.
        Specified by:
        deploy in interface WebAppDeployer
        Parameters:
        warFileName - The complete path to the Portlet war file.
        Returns:
        boolean Returns true if the deployment is successful.
        Throws:
        WebAppDeployerException
      • undeploy

        public boolean undeploy​(String warFileName)
                         throws WebAppDeployerException
        Provides the implementation of undeploying Portlet war from GlassFish.
        Specified by:
        undeploy in interface WebAppDeployer
        Parameters:
        warFileName - The complete path to the Portlet war file.
        Returns:
        boolean Returns true if the deployment is successful.
        Throws:
        WebAppDeployerException