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