It makes testing much easier, and also makes it possible to inject a
proxy between the real service and the client of it.

It's just much more flexible this way.

Larry


On 10/23/07, Dmitry Neverov <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Can anyone explain why should we use static method getInstance()? Why
> not just use static methods for accesing DB? Is it some kind of design
> pattern?
>
> --
> Best regards,
>    Dmitri Neverov
>
>

Reply via email to