Message-ID: <1688654652.1615.1412238557798.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1614_1780108487.1412238557797" ------=_Part_1614_1780108487.1412238557797 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The revamp clean old style code and old patterns which are now t= otally obsoletes for new style code and new pattern that will be obsolete i= n 2 years.
Don't use iterators anymore
Use the foreach form instead
Don't use singletons anymore
Instead, use picoContainer to create an object that will have o= nly one instance.
For this, you simply need to declare the component in the container
When you need to get the instance, simply put the component as a constru= ctor parameter
If you have a doubt on wether your classes respects this rule, you may u= se:
There were some duplications due to architecture limitations in the past= .
Now, you can create a component that may execute the commons work and in= ject in several classes.