[ 
https://issues.apache.org/jira/browse/SYNAPSE-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruwan Linton resolved SYNAPSE-382.
----------------------------------

       Resolution: Fixed
    Fix Version/s: NIGHTLY

Fixed on the svn trunk

> Provide access to SynapseConfiguration and ConfigurationContext through 
> SynapseEnvironment
> ------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-382
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-382
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2
>         Environment: N/A
>            Reporter: Andreas Veithen
>            Assignee: Ruwan Linton
>            Priority: Minor
>             Fix For: NIGHTLY
>
>
> When the init method on a Startup (or any other object implementing 
> ManagedLifecycle) is called it receives only a reference to the 
> SynapseEnvironment. From there it is not possible to directly retrieve the 
> corresponding SynapseConfiguration object. Neither it is possible to easily 
> get access to Axis2's ConfigurationContext (assuming that the 
> SynapseEnvironment implementation is Axis2SynapseEnvironment). However it is 
> possible to get references to these two objects by creating a new 
> MessageContext:
> for SynapseConfiguration: synEnv.createMessageContext().getConfiguration()
> for ConfigurationContext: 
> ((Axis2MessageContext)synEnv.createMessageContext()).getAxis2MessageContext().getConfigurationContext()
> If using that workaround it is possible to get the SynapseConfiguration and 
> ConfigurationContext from a (Axis2)SynapseEnvironment anyway, then there is 
> no reason to hide these objects and we should expose them cleanly by adding a 
> getSynapseConfiguration() method to SynapseEnvironment and a 
> getConfigurationContext() method to Axis2SynapseEnvironment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to