|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.scripting.ScriptModule
public class ScriptModule
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 | |
---|---|
ScriptModule()
|
Method Summary | |
---|---|
void |
applyPolicy(org.apache.neethi.Policy policy,
AxisDescription axisDescription)
Evaluates specified policy for the specified AxisDescription. |
boolean |
canSupportAssertion(org.apache.neethi.Assertion assertion)
Evaluate whether it can support the specified assertion and returns true if the assertion can be supported. |
void |
engageNotify(AxisDescription axisDescription)
When engaging this module to some service or operation , module will be notify by calling this method there module author can validate , add policy and do any thing that he want , and he can refuse the engage as well |
protected java.io.File |
getScriptServicesDirectory(AxisConfiguration axisConfig)
Gets the repo directory for the scripts. |
void |
init(ConfigurationContext configContext,
AxisModule module)
Init by creating and deploying AxisServices for each script |
void |
shutdown(ConfigurationContext configurationContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptModule()
Method Detail |
---|
public void init(ConfigurationContext configContext, AxisModule module) throws AxisFault
init
in interface Module
AxisFault
protected java.io.File getScriptServicesDirectory(AxisConfiguration axisConfig) throws DeploymentException
DeploymentException
public void applyPolicy(org.apache.neethi.Policy policy, AxisDescription axisDescription) throws AxisFault
Module
applyPolicy
in interface Module
policy
- the policy that is applicable for the specified AxisDescription
AxisFault
- if anything goes wrong.public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
Module
canSupportAssertion
in interface Module
assertion
- the assertion that the module must decide whether it can support or not.
public void engageNotify(AxisDescription axisDescription) throws AxisFault
Module
engageNotify
in interface Module
AxisFault
public void shutdown(ConfigurationContext configurationContext) throws AxisFault
shutdown
in interface Module
AxisFault
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |