FYI org.apache.axis2.util.MessageProcessorSelector uses that.

On Tue, Nov 5, 2013 at 7:38 PM, Afkham Azeez <[email protected]> wrote:

> We don't generally use parameters with contexts. We use properties with
> contexts. Parameters are used only with static config stuff. IMO, that
> method should not be used. If a parameter is required, it should be fetched
> from the relevant config, not the context.
>
>
> On Tue, Nov 5, 2013 at 7:32 PM, Nirmal Fernando <[email protected]> wrote:
>
>> Hi All,
>>
>> Just happened to see following broken logic.
>>
>>  /**
>>      * Retrieves configuration descriptor parameters at any level. The
>> order of
>>      * search is as follows:
>>      * <ol>
>>      * <li> Search in message description if it exists </li>
>>      * <li> If parameter is not found or if axisMessage is null, search in
>>      * AxisOperation </li>
>>      * <li> If parameter is not found or if operationContext is null,
>> search in
>>      * AxisService </li>
>>      * <li> If parameter is not found or if axisService is null, search in
>>      * AxisConfiguration </li>
>>      * </ol>
>>      *
>>      * @param key name of desired parameter
>>      * @return Parameter <code>Parameter</code>
>>      */
>>     public Parameter getParameter(String key) {
>>
>>         if( axisMessage != null ) {
>>             return axisMessage.getParameter(key);
>>         }
>>
>>         if (axisOperation != null) {
>>             return axisOperation.getParameter(key);
>>         }
>>
>>         if (axisService != null) {
>>             return axisService.getParameter(key);
>>         }
>>
>>         if (axisServiceGroup != null) {
>>             return axisServiceGroup.getParameter(key);
>>         }
>>
>>         if (configurationContext != null) {
>>             AxisConfiguration baseConfig = configurationContext
>>                     .getAxisConfiguration();
>>             return baseConfig.getParameter(key);
>>         }
>>         return null;
>>     }
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **[email protected]* <[email protected]>
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to