File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Spring in Action this week in the Spring forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instance Creation Through Spring Bean Injection