ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: question on com.ibatis.jpetstore.service.*
Date Tue, 23 Oct 2007 12:32:18 GMT
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 <neverov_dg@nkmk.ru> 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
>
>

Mime
View raw message