Hi Chris,

Wouldn¹t surprise me in the slightest ­ I do that a lot :->

Any hints as to where you WOULD use the init-method property?

Best Wishes,
Peter


On 11/18/06 11:14 PM, "Chris Scott" <[EMAIL PROTECTED]> wrote:

> I think you are probably missing the point Peter
> 
>  
> Chris Scott
> [EMAIL PROTECTED]
> http://cdscott.blogspot.com/
> http://www.coldspringframework.org/
> 
> 
> 
> 
> 
> 
> 
>  
> 
> On Nov 18, 2006, at 10:20 AM, Peter Bell wrote:
> 
>> Hi All,
>> 
>> I just want to clarify something. According to the CS reference, there is a
>> init-method property for beans so you can have a "secondary constructor"
>> which is run immediately after all dependencies have been provided.
>> 
>> But with constructor init(), you get all of the fully loaded beans passed
>> in, so you can call methods on those dependent beans in the init() method
>> already, so what is the purpose of the init-method property?
>> 
>> Only think I can think of is if you have decided to use setter injection but
>> need to call a method on one of the setter injected objects as part of the
>> overall construction process. Is this correct or am I missing something? Any
>> input appreciated!
>> 
>> Best Wishes,
>> Peter
>> 
>> 
>> 
>> 
>>  
> 
> 


Attachment: image.gif
Description: GIF image

Reply via email to