• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Looking for pattern in spring

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic