Package org.apache.axis2.scripting
Class ScriptModule
java.lang.Object
org.apache.axis2.scripting.ScriptModule
- All Implemented Interfaces:
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPolicy(org.apache.neethi.Policy policy, AxisDescription axisDescription) booleancanSupportAssertion(org.apache.neethi.Assertion assertion) voidengageNotify(AxisDescription axisDescription) protected FilegetScriptServicesDirectory(AxisConfiguration axisConfig) Gets the repo directory for the scripts.voidinit(ConfigurationContext configContext, AxisModule module) Init by creating and deploying AxisServices for each scriptvoidshutdown(ConfigurationContext configurationContext)
-
Constructor Details
-
ScriptModule
public ScriptModule()
-
-
Method Details
-
init
Init by creating and deploying AxisServices for each script -
getScriptServicesDirectory
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:
applyPolicyin interfaceModule- Throws:
AxisFault
-
canSupportAssertion
public boolean canSupportAssertion(org.apache.neethi.Assertion assertion) - Specified by:
canSupportAssertionin interfaceModule
-
engageNotify
- Specified by:
engageNotifyin interfaceModule- Throws:
AxisFault
-
shutdown
-