org.apache.synapse.axis2
Class Axis2SynapseEnvironment

java.lang.Object
  extended byorg.apache.synapse.SynapseEnvironment
      extended byorg.apache.synapse.axis2.Axis2SynapseEnvironment

public class Axis2SynapseEnvironment
extends SynapseEnvironment

This is the Axis2 implementation of the SynapseEnvironment


Field Summary
 
Fields inherited from class org.apache.synapse.SynapseEnvironment
parent, properties
 
Constructor Summary
Axis2SynapseEnvironment(org.apache.axis2.om.OMElement synapseConfiguration, java.lang.ClassLoader cl)
           
 
Method Summary
 void addProcessor(Processor p)
          This is how you add a processor to the list of processors.
 java.lang.ClassLoader getClassLoader()
           
 Processor getMasterProcessor()
          This returns the "Master Processor" which is the root processor for this instance of Synapse.
 void injectMessage(SynapseMessage smc)
           
 Processor lookupProcessor(java.lang.String name)
          This is used by the references to find a processor with a given name
 void send(SynapseMessage sm, SynapseEnvironment se)
          This method allows you send messages on.
 void setClassLoader(java.lang.ClassLoader cl)
           
 void setMasterProcessor(Processor p)
          This sets the root processor for the engine.
 
Methods inherited from class org.apache.synapse.SynapseEnvironment
getParent, getProperty, setParent, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2SynapseEnvironment

public Axis2SynapseEnvironment(org.apache.axis2.om.OMElement synapseConfiguration,
                               java.lang.ClassLoader cl)
Method Detail

injectMessage

public void injectMessage(SynapseMessage smc)
Specified by:
injectMessage in class SynapseEnvironment

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in class SynapseEnvironment

setClassLoader

public void setClassLoader(java.lang.ClassLoader cl)

send

public void send(SynapseMessage sm,
                 SynapseEnvironment se)
Description copied from class: SynapseEnvironment
This method allows you send messages on. As opposed to injectMessage send message does not process these through Synapse.

This will send request messages on, and send response messages back to the client

Specified by:
send in class SynapseEnvironment

lookupProcessor

public Processor lookupProcessor(java.lang.String name)
Description copied from class: SynapseEnvironment
This is used by the references to find a processor with a given name

Specified by:
lookupProcessor in class SynapseEnvironment

addProcessor

public void addProcessor(Processor p)
Description copied from class: SynapseEnvironment
This is how you add a processor to the list of processors. The name which it can be retrieved by is the processor.getName()

Specified by:
addProcessor in class SynapseEnvironment

getMasterProcessor

public Processor getMasterProcessor()
Description copied from class: SynapseEnvironment
This returns the "Master Processor" which is the root processor for this instance of Synapse. Usually this would be the processor derived from <synapse>.

Specified by:
getMasterProcessor in class SynapseEnvironment

setMasterProcessor

public void setMasterProcessor(Processor p)
Description copied from class: SynapseEnvironment
This sets the root processor for the engine.

Specified by:
setMasterProcessor in class SynapseEnvironment