Interface WebAppDeployer
-
- All Known Implementing Classes:
DefaultWebAppDeployer
,GlassFishWebAppDeployer
,TomcatWebAppDeployer
public interface WebAppDeployer
An interface which defines methods to deploy and undeploy Portlet war files on a Web Container. The realizations of this inteface will provide Container specific implementations for deploying and undeploying on the particular web containers.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE
static String
WAR_NOT_DEPLOYED
static String
WAR_NOT_UNDEPLOYED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deploy(String warFileName)
Deploys the Portlet war on the web container.boolean
undeploy(String warFileName)
Undeploys the Portlet war from the web container.
-
-
-
Field Detail
-
CONFIG_FILE
static final String CONFIG_FILE
- See Also:
- Constant Field Values
-
WAR_NOT_DEPLOYED
static final String WAR_NOT_DEPLOYED
- See Also:
- Constant Field Values
-
WAR_NOT_UNDEPLOYED
static final String WAR_NOT_UNDEPLOYED
- See Also:
- Constant Field Values
-
-
Method Detail
-
deploy
boolean deploy(String warFileName) throws WebAppDeployerException
Deploys the Portlet war on the web container.- Parameters:
warFileName
- The complete path to the Portlet war file.- Returns:
- boolean Returns true if the deployment is successful.
- Throws:
WebAppDeployerException
-
undeploy
boolean undeploy(String warFileName) throws WebAppDeployerException
Undeploys the Portlet war from the web container.- Parameters:
warFileName
- The name of the Portlet war file.- Returns:
- boolean Returns true if the undeployment is successful.
- Throws:
WebAppDeployerException
-
-