|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.synapse.SynapseEnvironment
Common stuff needed to embed Synapse into a given runtime (e.g. Axis2)
This interface is used by the processors, and also by EnvironmentAware mediators
Field Summary | |
protected SynapseEnvironment |
parent
|
protected java.util.Map |
properties
|
Constructor Summary | |
protected |
SynapseEnvironment(SynapseEnvironment parent)
|
Method Summary | |
abstract void |
addProcessor(Processor p)
This is how you add a processor to the list of processors. |
abstract java.lang.ClassLoader |
getClassLoader()
|
abstract Processor |
getMasterProcessor()
This returns the "Master Processor" which is the root processor for this instance of Synapse. |
SynapseEnvironment |
getParent()
|
java.lang.Object |
getProperty(java.lang.String key)
Retrieves an object given a key. |
abstract void |
injectMessage(SynapseMessage smc)
|
abstract Processor |
lookupProcessor(java.lang.String name)
This is used by the references to find a processor with a given name |
abstract void |
send(SynapseMessage smc,
SynapseEnvironment se)
This method allows you send messages on. |
abstract void |
setMasterProcessor(Processor p)
This sets the root processor for the engine. |
void |
setParent(SynapseEnvironment parent)
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Store a property for message context |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SynapseEnvironment parent
protected java.util.Map properties
Constructor Detail |
protected SynapseEnvironment(SynapseEnvironment parent)
Method Detail |
public SynapseEnvironment getParent()
public void setParent(SynapseEnvironment parent)
public java.lang.Object getProperty(java.lang.String key)
key
- - if not found, will return null
public void setProperty(java.lang.String key, java.lang.Object value)
key
- value
- public abstract void injectMessage(SynapseMessage smc)
public abstract java.lang.ClassLoader getClassLoader()
public abstract void send(SynapseMessage smc, SynapseEnvironment se)
This will send request messages on, and send response messages back to the client
public abstract Processor lookupProcessor(java.lang.String name)
public abstract void addProcessor(Processor p)
public abstract Processor getMasterProcessor()
public abstract void setMasterProcessor(Processor p)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |