• 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

Shared properties between different projects with different projects

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have some doubts about one development related to different frameworks and .properties files.

I'm developing three projects, there are one with desktop java J2SE that uses a native .properties (not connected with nothing, it's used to manage and adapt local files to be ingested), other that have Struts2 framework and uses the default .properties file for i18n (used to manage the content of the frontend) and other more, based on SpringMVC and Liferay which uses the standard way to get a property (the target front-end).

The problem is that now, I want to unify these three projects, and the only way that I have into my head is use a common library that request for a property, and get the target code. The problem is that I have to adapt all the projects and all the called getText(KEY) functions should be replaced by these target library.

My question is if there is other way to load several .properties files with a library, and take advantage of the current framework of each project, because the only solution that I've thought is replace all the called getText() functions and call to a external library that check if there are one property of each .property file, but with this solution I have some problems with SpringMVC.

Thanks in advance for any idea.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic