Thanks 4 the clarification. That also applies if one was accessing java through from C++ via JNI. Aside from this, I don't see the need to have the s/getters private.
--- On Mon, 5/25/09, Ashok Hariharan <ashok@parliaments.info> wrote:
From: Ashok Hariharan <ashok@parliaments.info> Subject: Re: [Skunkworks] Spring DI and OOP inheritance: To: "Skunkworks forum" <skunkworks@lists.my.co.ke> Date: Monday, May 25, 2009, 11:50 AM
On Mon, May 25, 2009 at 11:24 AM, wesley kiriinya <kiriinya2000@yahoo.com> wrote: > Another solution: > > You don't have to make the setters and getters private (i.e. setCustomerDao, > getCustomer because the references they return are also private). Therefore > the s/getters would be either protected or public allowing you to do the > spring wiring as follows: > > <bean id="customerServiceImpl" class="ke.co.x.x.CustomerServiceImpl"> > <property name="customerDao" ref="customerDao"/> > </bean> >