org.apache.axis2.context
Class ConfigurationContext

java.lang.Object
  extended byorg.apache.axis2.context.AbstractContext
      extended byorg.apache.axis2.context.ConfigurationContext
All Implemented Interfaces:
java.io.Serializable

public class ConfigurationContext
extends AbstractContext

This is the biggest memeber of the Axis2 information hierachy, and if this is serialized completly the whole Axis2 is saved to the disc.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis2.context.AbstractContext
nonPersistentMap, parent, persistentMap
 
Constructor Summary
ConfigurationContext(AxisConfiguration axisConfiguration)
           
 
Method Summary
 ServiceGroupContext fillServiceContextAndServiceGroupContext(MessageContext messageContext)
          This method should search for a SGC in the map with given id as the key.
 AxisConfiguration getAxisConfiguration()
           
 OperationContext getOperationContext(java.lang.String messageID)
          get a OperationContext given a Message ID
 java.util.Map getOperationContextMap()
           
 java.io.File getRealPath(java.lang.String path)
          This method allows users to reolve the paths relative to the root diretory
 ServiceContext getServiceContext(java.lang.String serviceInstanceID)
          get the ServiceContext given a id
 ServiceGroupContext getServiceGroupContext(java.lang.String serviceGroupContextId)
           
 java.util.HashMap getServiceGroupContexts()
          To get all the service groups in the system
 AxisStorage getStorage()
           
 ThreadPool getThreadPool()
           
 void init()
          The method is used to do the intialization of the EngineContext
 void init(AxisConfiguration axisConfiguration)
           
 void registerOperationContext(java.lang.String messageID, OperationContext mepContext)
          Register a OperationContext agienst a given Message ID.
 void registerServiceContext(java.lang.String serviceInstanceID, ServiceContext serviceContext)
          Register a ServiceContext agienst a given Message ID.
 void registerServiceGroupContext(ServiceGroupContext serviceGroupContext)
           
 void removeService(javax.xml.namespace.QName name)
           
 void setAxisConfiguration(AxisConfiguration configuration)
           
 void setRootDir(java.io.File file)
           
 void setStorage(AxisStorage storage)
           
 
Methods inherited from class org.apache.axis2.context.AbstractContext
getNonPersistentMap, getParent, getPersistentMap, getProperty, getProperty, setParent, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationContext

public ConfigurationContext(AxisConfiguration axisConfiguration)
Method Detail

init

public void init()
          throws AxisFault
The method is used to do the intialization of the EngineContext

Throws:
AxisFault

removeService

public void removeService(javax.xml.namespace.QName name)

init

public void init(AxisConfiguration axisConfiguration)
          throws AxisFault
Specified by:
init in class AbstractContext
Throws:
AxisFault

getAxisConfiguration

public AxisConfiguration getAxisConfiguration()

setAxisConfiguration

public void setAxisConfiguration(AxisConfiguration configuration)
Parameters:
configuration -

registerOperationContext

public void registerOperationContext(java.lang.String messageID,
                                     OperationContext mepContext)
Register a OperationContext agienst a given Message ID.

Parameters:
messageID -
mepContext -

getOperationContext

public OperationContext getOperationContext(java.lang.String messageID)
get a OperationContext given a Message ID

Parameters:
messageID -
Returns:
OperationContext OperationContext

getOperationContextMap

public java.util.Map getOperationContextMap()

registerServiceContext

public void registerServiceContext(java.lang.String serviceInstanceID,
                                   ServiceContext serviceContext)
Register a ServiceContext agienst a given Message ID.


getServiceContext

public ServiceContext getServiceContext(java.lang.String serviceInstanceID)
get the ServiceContext given a id

Parameters:
serviceInstanceID -

getStorage

public AxisStorage getStorage()

setStorage

public void setStorage(AxisStorage storage)

getThreadPool

public ThreadPool getThreadPool()
Returns:
the Gloal ThradPool

getRealPath

public java.io.File getRealPath(java.lang.String path)
This method allows users to reolve the paths relative to the root diretory

Parameters:
path -

setRootDir

public void setRootDir(java.io.File file)
Parameters:
file -

fillServiceContextAndServiceGroupContext

public ServiceGroupContext fillServiceContextAndServiceGroupContext(MessageContext messageContext)
                                                             throws AxisFault
This method should search for a SGC in the map with given id as the key. If(key != null && found) check for a service context for the intended service. if (!found) create one and hook up to SGC else create new sgc with the given key or if key is null with a new key create a new service context for the service

Parameters:
messageContext -
Throws:
AxisFault

registerServiceGroupContext

public void registerServiceGroupContext(ServiceGroupContext serviceGroupContext)

getServiceGroupContext

public ServiceGroupContext getServiceGroupContext(java.lang.String serviceGroupContextId)

getServiceGroupContexts

public java.util.HashMap getServiceGroupContexts()
To get all the service groups in the system

Returns: