Class ScriptDeploymentEngine

java.lang.Object
org.apache.axis2.deployment.DeploymentEngine
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 Details

  • Constructor Details

    • ScriptDeploymentEngine

      public ScriptDeploymentEngine(AxisConfiguration realAxisConfig)
  • Method Details

    • loadRepository

      public void loadRepository(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 File getModulesDir()
      Overrides:
      getModulesDir in class DeploymentEngine
    • getScriptForWSDL

      protected File getScriptForWSDL(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 File getWSDLForScript(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(File wsdlFile, File scriptFile)
      Creates an Axis2 service for the script
    • readScriptSource

      protected String readScriptSource(File scriptFile) throws AxisFault
      Reads the complete script source code into a String
      Throws:
      AxisFault