Message-ID: <245997930.523.1427899080803.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_522_936975283.1427899080802" ------=_Part_522_936975283.1427899080802 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.