aspose file tools*
The moose likes Spring and the fly likes Instance Creation Through Spring Bean Injection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Instance Creation Through Spring Bean Injection" Watch "Instance Creation Through Spring Bean Injection" New topic
Author

Instance Creation Through Spring Bean Injection

Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Hi,

I am new to spring, and want some ideas.

Following are the classes needed as per my scenario.

Parent is base class which is extend by Child.







How to achieve this?

Thanks,
tanzy.


Roll with punchers, there is always tomorrow.
Techie Blog -- http://jtanzy.blogspot.com/
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Depends; how is Spring being initialized?
Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Thanks David for the response.

What exactly do you mean by the statement--
how is Spring being initialized?


Well, for each bean we use in the project, defines in a xml file.
In this xml file all the dependency are defined.
 
Don't get me started about those stupid light bulbs.
 
subject: Instance Creation Through Spring Bean Injection