This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Looking for pattern in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Looking for pattern in spring" Watch "Looking for pattern in spring" New topic
Author

Looking for pattern in spring

Ahmed Basheer
Ranch Hand

Joined: Apr 15, 2004
Posts: 77
I am looking for a pattern in spring where most of the things will be taken care off in spring xml file. I have base class ( default class) and three derived classes NY, London, Tokyo. Similar another set of base class and derived classes for NY, London and Tokoyo. In traditional java application you have to know every time which Class you want to create and work from that class. Possibly a factory pattern in traditional java application can handle it better. Is there any mechanism in spring where once the locale is set the correct classes are returned based on the locale set.I like to keep mapping of all classes for all regions in one file but create classes specific to user defined locale.

Any insight into this?

Thanks,
Ahmed.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Looking for pattern in spring
 
Similar Threads
New to UML Design Docs
Method References
private constructors - singleton pattern
Interfaces vs Abstract Classes
3 months