org.apache.synapse.handler
Class SynapseModule

java.lang.Object
  extended by org.apache.synapse.handler.SynapseModule
All Implemented Interfaces:
Module

public class SynapseModule
extends Object
implements Module

This will be the Module class for the Synapse handler based mediation inside axis2 server. This will just set the default system property of SYNAPSE_XML to the repository/conf/synapse.xml in the axis2 servers repository and call the normal Synapse startup.


Constructor Summary
SynapseModule()
           
 
Method Summary
 void applyPolicy(org.apache.neethi.Policy policy, AxisDescription axisDescription)
           
 boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
           
 void engageNotify(AxisDescription axisDescription)
           
 void init(ConfigurationContext configurationContext, AxisModule axisModule)
          This method will call the normal initiation after setting the SYNAPSE_XML file to get from the axis2 repository/conf folder
 void shutdown(ConfigurationContext configurationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynapseModule

public SynapseModule()
Method Detail

init

public void init(ConfigurationContext configurationContext,
                 AxisModule axisModule)
          throws AxisFault
This method will call the normal initiation after setting the SYNAPSE_XML file to get from the axis2 repository/conf folder

Specified by:
init in interface Module
Parameters:
configurationContext - - ConfigurationContext of the Axis2 env
axisModule - - AxisModule describing handler initializationModule of Synapse
Throws:
AxisFault - - in-case of a failure in initiation

engageNotify

public void engageNotify(AxisDescription axisDescription)
                  throws AxisFault
Specified by:
engageNotify in interface Module
Throws:
AxisFault

canSupportAssertion

public boolean canSupportAssertion(org.apache.neethi.Assertion assertion)
Specified by:
canSupportAssertion in interface Module

applyPolicy

public void applyPolicy(org.apache.neethi.Policy policy,
                        AxisDescription axisDescription)
                 throws AxisFault
Specified by:
applyPolicy in interface Module
Throws:
AxisFault

shutdown

public void shutdown(ConfigurationContext configurationContext)
              throws AxisFault
Specified by:
shutdown in interface Module
Throws:
AxisFault


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.