org.apache.axis2.scripting
Class ScriptDeploymentEngine

java.lang.Object
  extended by org.apache.axis2.deployment.DeploymentEngine
      extended by org.apache.axis2.scripting.ScriptDeploymentEngine
All Implemented Interfaces:
DeploymentConstants

public class ScriptDeploymentEngine
extends DeploymentEngine

An Axis2 DeploymentEngine subclass for deploying script services supporting hot deploy and hot update.


Field Summary
static java.lang.String SCRIPT_HOT_UPDATE_
           
 
Fields inherited from class org.apache.axis2.deployment.DeploymentEngine
axisConfig, configContext, hotDeployment, hotUpdate, moduleDeployer, modulesDir, modulesPath, repoListener, scheduler, serviceDeployer, servicesDir, servicesPath, webLocationString, wsToDeploy, wsToUnDeploy
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
ATTACHMENTS_LIFECYCLE_MANAGER, ATTRIBUTE_ACTIVATE, ATTRIBUTE_CLASS, ATTRIBUTE_DEFAULT_VERSION, ATTRIBUTE_LOCKED, ATTRIBUTE_NAME, ATTRIBUTE_NAMESPACE, ATTRIBUTE_PACKAGE, ATTRIBUTE_SCOPE, ATTRIBUTE_WSADDRESSING, AXIS2_CONFIGURATION_RESOURCE, AXIS2_CONFIGURATION_XML, AXIS2_REPO, BOOLEAN_FALSE, BOOLEAN_TRUE, DEPLOYER, DIRECTORY, DIRECTORY_AXIS2_HOME, DIRECTORY_CONF, EXTENSION, MAPPING, META_INF, MODULE_DRI_PATH, MODULE_PATH, MODULE_XML, POLICY_NS_URI, PROPERTY_TEMP_DIR, RESOURCE_MODULES, SCHEMA, SCHEMA_ELEMENT_QUALIFIED, SCHEMA_NAME_SPACE, SEPARATOR_COLON, SEPARATOR_DOT, SERVICE_DIR_PATH, SERVICE_PATH, SERVICES_XML, SUFFIX_JAR, SUFFIX_MAR, SUFFIX_WSDL, TAG_AFTER, TAG_ANTI_JAR_LOCKING, TAG_APPLIES_TO, TAG_AXISCONFIG, TAG_BEFORE, TAG_CLASS_NAME, TAG_CLUSTER, TAG_CONFIGURATION_MANAGER, TAG_CONTENT_TYPE, TAG_CONTEXT, TAG_CONTEXT_MANAGER, TAG_DEFAULT_MODULE_VERSION, TAG_DEFAULTS, TAG_DESCRIPTION, TAG_DISPATCH_ORDER, TAG_DISPATCHER, TAG_EXCLUDE, TAG_EXCLUDE_OPERATIONS, TAG_EXCLUDE_PROPERTIES, TAG_EXPOSE, TAG_EXTRACT_SERVICE_ARCHIVE, TAG_FLOW_IN, TAG_FLOW_IN_FAULT, TAG_FLOW_OUT, TAG_FLOW_OUT_FAULT, TAG_HANDLER, TAG_HOT_DEPLOYMENT, TAG_HOT_UPDATE, TAG_INCLUDE_PROPERTIES, TAG_LABEL, TAG_LIST_ID, TAG_LISTENER, TAG_MAPPING, TAG_MEP, TAG_MESSAGE, TAG_MESSAGE_BUILDER, TAG_MESSAGE_BUILDERS, TAG_MESSAGE_FORMATTER, TAG_MESSAGE_FORMATTERS, TAG_MESSAGE_RECEIVER, TAG_MESSAGE_RECEIVERS, TAG_MODULE, TAG_MODULE_CONFIG, TAG_NAMESPACES, TAG_OBJECT_SUPPLIER, TAG_OPERATION, TAG_ORDER, TAG_PACKAGE_NAME, TAG_PACKAGE2QNAME, TAG_PARAMETER, TAG_PHASE, TAG_PHASE_FIRST, TAG_PHASE_LAST, TAG_PHASE_ORDER, TAG_POLICY, TAG_POLICY_ATTACHMENT, TAG_POLICY_REF, TAG_QNAME, TAG_REFERENCE, TAG_REPLICATION, TAG_SERVICE, TAG_SERVICE_GROUP, TAG_SUPPORTED_POLICY_NAMESPACES, TAG_TARGET_RESOLVER, TAG_TARGET_RESOLVERS, TAG_THREAD_CONTEXT_MIGRATOR, TAG_THREAD_CONTEXT_MIGRATORS, TAG_TRANSPORT, TAG_TRANSPORT_RECEIVER, TAG_TRANSPORT_SENDER, TAG_TRANSPORTS, TAG_TYPE, TARGET_NAME_SPACE
 
Constructor Summary
ScriptDeploymentEngine(AxisConfiguration realAxisConfig)
           
 
Method Summary
protected  AxisService createService(java.io.File wsdlFile, java.io.File scriptFile)
          Creates an Axis2 service for the script
 void doDeploy()
           
 java.io.File getModulesDir()
           
protected  java.io.File getScriptForWSDL(java.io.File wsdlFile)
          Gets the script associated with the wsdl.
protected  java.io.File getWSDLForScript(java.io.File scriptFile)
          Gets the WSDL associated with the script.
 void loadRepository(java.io.File scriptsRepoFile)
           
protected  java.lang.String readScriptSource(java.io.File scriptFile)
          Reads the complete script source code into a String
 void unDeploy()
           
 
Methods inherited from class org.apache.axis2.deployment.DeploymentEngine
addNewModule, addServiceGroup, addWSToDeploy, addWSToUndeploy, buildModule, buildService, buildServiceGroup, cleanup, engageModules, fillServiceGroup, getAxisConfig, getAxisServiceName, getDeployerForExtension, getDirectoryToExtensionMappingMap, getFileList, getModule, getModuleDeployer, getRepoListener, getRepositoryDir, getRepositoryPath, getServiceDeployer, getServicesDir, getWebLocationString, isHotUpdate, loadDefaultMessageReceiver, loadFromClassPath, loadRepository, loadRepositoryFromURL, loadServiceGroup, loadServices, loadServicesFromUrl, populateAxisConfiguration, populateService, prepareRepository, setClassLoaders, setConfigContext, setDeploymentFeatures, setDirectoryToExtensionMappingMap, setExtensionToDeployerMappingMap, setWebLocationString, startSearch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCRIPT_HOT_UPDATE_

public static final java.lang.String SCRIPT_HOT_UPDATE_
See Also:
Constant Field Values
Constructor Detail

ScriptDeploymentEngine

public ScriptDeploymentEngine(AxisConfiguration realAxisConfig)
Method Detail

loadRepository

public void loadRepository(java.io.File scriptsRepoFile)
                    throws DeploymentException
Throws:
DeploymentException

doDeploy

public void doDeploy()
Overrides:
doDeploy in class DeploymentEngine

unDeploy

public void unDeploy()
Overrides:
unDeploy in class DeploymentEngine

getModulesDir

public java.io.File getModulesDir()
Overrides:
getModulesDir in class DeploymentEngine

getScriptForWSDL

protected java.io.File getScriptForWSDL(java.io.File wsdlFile)
Gets the script associated with the wsdl. The associated script is the file with the same name as the wsdl file excluding the file suffix, for example, stockquote.js and stockquote.wsdl.


getWSDLForScript

protected java.io.File getWSDLForScript(java.io.File scriptFile)
Gets the WSDL associated with the script. The associated WSDL is the file with the same name as the script file excluding the file suffix, for example, stockquote.js and stockquote.wsdl.


createService

protected AxisService createService(java.io.File wsdlFile,
                                    java.io.File scriptFile)
Creates an Axis2 service for the script


readScriptSource

protected java.lang.String readScriptSource(java.io.File scriptFile)
                                     throws AxisFault
Reads the complete script source code into a String

Throws:
AxisFault


Copyright © 2007 Apache Web Services Project. All Rights Reserved.