Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instance Creation Through Spring Bean Injection

 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends; how is Spring being initialized?
 
Tanzy Akhtar
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic