org.wso2.carbon.application.deployer.webapp
Class WARCappDeployer

java.lang.Object
  extended by org.wso2.carbon.application.deployer.webapp.WARCappDeployer
All Implemented Interfaces:
org.wso2.carbon.application.deployer.handler.AppDeploymentHandler

public class WARCappDeployer
extends Object
implements org.wso2.carbon.application.deployer.handler.AppDeploymentHandler


Field Summary
static String JAX_WAR_TYPE
           
static String WAR_DIR
           
static String WAR_TYPE
           
 
Constructor Summary
WARCappDeployer()
           
 
Method Summary
 void deployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig)
          Check the artifact type and if it is a WAR, copy it to the WAR deployment hot folder
 void undeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig)
          Check the artifact type and if it is a WAR, delete the file from the WAR deployment hot folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAR_TYPE

public static final String WAR_TYPE
See Also:
Constant Field Values

JAX_WAR_TYPE

public static final String JAX_WAR_TYPE
See Also:
Constant Field Values

WAR_DIR

public static final String WAR_DIR
See Also:
Constant Field Values
Constructor Detail

WARCappDeployer

public WARCappDeployer()
Method Detail

deployArtifacts

public void deployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp,
                            org.apache.axis2.engine.AxisConfiguration axisConfig)
                     throws org.apache.axis2.deployment.DeploymentException
Check the artifact type and if it is a WAR, copy it to the WAR deployment hot folder

Specified by:
deployArtifacts in interface org.wso2.carbon.application.deployer.handler.AppDeploymentHandler
Parameters:
carbonApp - - CarbonApplication instance to check for WAR artifacts
axisConfig - - axisConfig of the current tenant
Throws:
org.apache.axis2.deployment.DeploymentException

undeployArtifacts

public void undeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp,
                              org.apache.axis2.engine.AxisConfiguration axisConfig)
Check the artifact type and if it is a WAR, delete the file from the WAR deployment hot folder

Specified by:
undeployArtifacts in interface org.wso2.carbon.application.deployer.handler.AppDeploymentHandler
Parameters:
carbonApp - - CarbonApplication instance to check for WAR artifacts
axisConfig - - AxisConfiguration of the current tenant


Copyright © 2015 WSO2. All rights reserved.