Message-ID: <1727656309.22198.1406850401305.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_22197_1457866876.1406850401305" ------=_Part_22197_1457866876.1406850401305 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.