org.apache.axis2.scripting
Class ScriptModule
java.lang.Object
org.apache.axis2.scripting.ScriptModule
- All Implemented Interfaces:
- Module
public class ScriptModule
- extends java.lang.Object
- implements Module
Axis2 module to initialize script services. Uses a ScriptDeploymentEngine to
find all the scripts in the scriptServices directory and deploy them as Axis2
services.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptModule
public ScriptModule()
init
public void init(ConfigurationContext configContext,
AxisModule module)
throws AxisFault
- Init by creating and deploying AxisServices for each script
- Specified by:
init in interface Module
- Throws:
AxisFault
getScriptServicesDirectory
protected java.io.File getScriptServicesDirectory(AxisConfiguration axisConfig)
throws DeploymentException
- Gets the repo directory for the scripts. The scripts directory is a
sub-directory of the Axis2 repository directory. Its name may be defined
by a 'scriptServicesDir' property in the axis2.xml otherwise it defaults
a to a directory named 'scriptServices'.
- Throws:
DeploymentException
applyPolicy
public void applyPolicy(org.apache.neethi.Policy policy,
AxisDescription axisDescription)
throws AxisFault
- Specified by:
applyPolicy in interface Module
- Throws:
AxisFault
canSupportAssertion
public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
- Specified by:
canSupportAssertion in interface Module
engageNotify
public void engageNotify(AxisDescription axisDescription)
throws AxisFault
- Specified by:
engageNotify in interface Module
- Throws:
AxisFault
shutdown
public void shutdown(ConfigurationContext configurationContext)
throws AxisFault
- Specified by:
shutdown in interface Module
- Throws:
AxisFault
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.