A related thread on StackOverflow http://stackoverflow.com/questions/4457042/best-practice-for-updating-writing-to-static-variable
On Mon, Mar 26, 2012 at 8:49 PM, Afkham Azeez <[email protected]> wrote: > 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 <[email protected]> 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 <[email protected]>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: **[email protected]* <[email protected]>* 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: **[email protected]* <[email protected]>* 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: **[email protected]* <[email protected]>* 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 [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
