Ah! Found it!

" "Write to static field <foo> and <bar> from instance method
someClassMethod"

ServiceComponents are instances, and we are setting static values. Please
religiously follow framework best practices that have been in existence.
These best practices have been learnt over the past few years, so there is
a reason that they have become best practices.

Azeez


On Mon, Mar 26, 2012 at 8:46 PM, Afkham Azeez <az...@wso2.com> wrote:

> This is to avoid FindBugs warnings. There was a rationale behind it but
> now I can't immediately recall it. Since mid 2010, we decided to adopt this
> as a convention.
> http://wso2.org/svn/browse/wso2?revision=72106&view=revision is one of
> the first commits which was done after the FindBugs hackathon to fix these
> issues.
>
>
> On Mon, Mar 26, 2012 at 8:27 PM, Pradeep Fernando <prad...@wso2.com>wrote:
>
>> Hi azeez,
>>
>> I even discussed this convention with sameera,  (after URL mapper code
>> review).  We couldn't come up with any reason to follow this convention.
>>
>> Why we are making it singleton ?
>>
>> --Pradeep
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
> 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*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
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*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to