This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to inject a factory through Spring  RSS feed

 
Anshul Chandra Saxena
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a main class, that receives an action from the jsp. On the basis of action value i need to invoke the correct service. I have adopted the Abstract Factory Pattern, wherein on the basis of action value, the correct service is invoked. My only problem is how to inject this factory into the main class using Spring.

Can anyone please let me know, how to do this.

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!