org.apache.axis2.deployment
Class DeploymentEngine

java.lang.Object
  extended byorg.apache.axis2.deployment.DeploymentEngine
All Implemented Interfaces:
DeploymentConstants

public class DeploymentEngine
extends java.lang.Object
implements DeploymentConstants


Field Summary
protected static java.lang.String AXIS2_CONFIGURATION_RESOURCE
          Resource that contains the configuration
 java.lang.String axis2repository
           
protected static java.lang.String SERVER_XML_FILE
           
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
AFTER, ATQNAME, ATTLOCKED, ATTNAME, ATUSE, AXIS_STORAGE, AXIS2CONFIG, BEANMAPPINGST, BEFORE, CLASSNAME, CONTEXTPATHNAME, DESCRIPTION, DIPSTCH_ORDER, DIPSTCHER, EXTRACTSERVICEARCHIVE, HANDERST, HOTDEPLOYMENT, HOTUPDATE, IN_FAILTFLOW, INFLOWST, JWS_EXTENSION, LISTENERST, MEP, MESSAGERECEIVER, META_INF, MODULE, MODULE_PATH, MODULECONFIG, MODULEST, MODULEXML, OPRATIONST, ORDER, OUT_FAILTFLOW, OUTFLOWST, PARAMETERST, PHASE, PHASE_ORDER, PHASEFIRST, PHASELAST, PHASEST, REF, SERVICE, SERVICE_ELEMENT, SERVICE_GROUP_ELEMENT, SERVICE_PATH, SERVICETAG, SERVICEWSDL, SERVICEXML, STYLENAME, TRANSPORTRECEIVER, TRANSPORTSENDER, TRANSPORTSTAG, TRANSPORTTAG, TYPE, TYPEMAPPINGST
 
Constructor Summary
DeploymentEngine()
          Default constructor is need to deploye module and service programatically
DeploymentEngine(java.lang.String repositoryName)
          This the constructor which is used by Engine inorder to start Deploymenat module,
DeploymentEngine(java.lang.String repositoryName, java.lang.String serverXMLFile)
           
 
Method Summary
 void addModule(javax.xml.namespace.QName moduleName)
          while parsing the axis2.xml the module refferences have to be store some where , since at that time none of module availble (they load after parsing the document)
 void addWSToDeploy(ArchiveFileData file)
           
 void addWSToUndeploy(WSInfo file)
           
 ModuleDescription buildModule(java.io.File modulearchive)
          This method can be used to build ModuleDescription for a given module archiev file
 ServiceDescription buildService(ServiceDescription axisService, java.io.InputStream serviceInputStream, java.lang.ClassLoader classLoader)
          This method is used to fill a axisservice object using services.xml , first it should create an axisservice object using WSDL and then fill that using given servic.xml and load all the requed class and build the chains , finally add the servicecontext to EngineContext and axisservice into EngineConfiguration
 void doDeploy()
           
 AxisConfiguration getAxisConfig()
          tio get ER
 ArchiveFileData getCurrentFileItem()
           
 java.lang.Class getHandlerClass(java.lang.String className, java.lang.ClassLoader loader1)
           
 ModuleDescription getModule(javax.xml.namespace.QName moduleName)
           
 PhasesInfo getPhasesinfo()
           
 boolean isHotUpdate()
           
 AxisConfiguration load()
           
 AxisConfiguration loadClient(java.lang.String clientHome)
           
 void setPhasesinfo(PhasesInfo phasesinfo)
           
 void unDeploy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

axis2repository

public java.lang.String axis2repository

AXIS2_CONFIGURATION_RESOURCE

protected static final java.lang.String AXIS2_CONFIGURATION_RESOURCE
Resource that contains the configuration

See Also:
Constant Field Values

SERVER_XML_FILE

protected static final java.lang.String SERVER_XML_FILE
See Also:
Constant Field Values
Constructor Detail

DeploymentEngine

public DeploymentEngine()
Default constructor is need to deploye module and service programatically


DeploymentEngine

public DeploymentEngine(java.lang.String repositoryName)
                 throws DeploymentException
This the constructor which is used by Engine inorder to start Deploymenat module,

Parameters:
repositoryName - is the path to which Repositary Listner should listent.

DeploymentEngine

public DeploymentEngine(java.lang.String repositoryName,
                        java.lang.String serverXMLFile)
                 throws DeploymentException
Method Detail

getCurrentFileItem

public ArchiveFileData getCurrentFileItem()

getAxisConfig

public AxisConfiguration getAxisConfig()
tio get ER

Returns:
AxisConfiguration AxisConfiguration

load

public AxisConfiguration load()
                       throws DeploymentException
Throws:
DeploymentException

loadClient

public AxisConfiguration loadClient(java.lang.String clientHome)
                             throws DeploymentException
Throws:
DeploymentException

getModule

public ModuleDescription getModule(javax.xml.namespace.QName moduleName)
                            throws AxisFault
Throws:
AxisFault

getHandlerClass

public java.lang.Class getHandlerClass(java.lang.String className,
                                       java.lang.ClassLoader loader1)
                                throws AxisFault
Throws:
AxisFault

addWSToDeploy

public void addWSToDeploy(ArchiveFileData file)
Parameters:
file -

addWSToUndeploy

public void addWSToUndeploy(WSInfo file)
Parameters:
file -

doDeploy

public void doDeploy()

unDeploy

public void unDeploy()

isHotUpdate

public boolean isHotUpdate()

addModule

public void addModule(javax.xml.namespace.QName moduleName)
while parsing the axis2.xml the module refferences have to be store some where , since at that time none of module availble (they load after parsing the document)

Parameters:
moduleName - QName

getPhasesinfo

public PhasesInfo getPhasesinfo()

setPhasesinfo

public void setPhasesinfo(PhasesInfo phasesinfo)

buildService

public ServiceDescription buildService(ServiceDescription axisService,
                                       java.io.InputStream serviceInputStream,
                                       java.lang.ClassLoader classLoader)
                                throws DeploymentException
This method is used to fill a axisservice object using services.xml , first it should create an axisservice object using WSDL and then fill that using given servic.xml and load all the requed class and build the chains , finally add the servicecontext to EngineContext and axisservice into EngineConfiguration

Parameters:
axisService -
serviceInputStream -
classLoader -
Returns:
Throws:
DeploymentException

buildModule

public ModuleDescription buildModule(java.io.File modulearchive)
                              throws DeploymentException
This method can be used to build ModuleDescription for a given module archiev file

Parameters:
modulearchive -
Returns:
Throws:
DeploymentException