Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » How to handle System Properties?
icon5.gif  How to handle System Properties? [message #675751] Wed, 01 June 2011 11:54
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
We recently had the case that a "accessor" method for a system property went into a class in riena.core which was not thought for this case - but it looked so good, everyone can see it, .. Well!?

This usage unveils the need for a "visible" location for system properties. Before OSGi and proper modularization in mind there was often one central class (location) containing all the system properties.
But with OSGi and modularization this is a bad idea.

How about this?
Every bundle that gets "configured or controlled" by system properties has a non-internal class with "accessor" methods for the system properties. The classes have always the same (simple) name and are within the package with the same name as the bundles symbolic name, e.g. for riena.core it would be "org.eclipse.riena.core.SystemProperties" with "SystemProperties" as the common name for the class (may be there is a better name - I don't know).

With this:
+ all system property uses are easy to find
+ can be well documented
+ allows modularization

Comments/.. !?

Stefan
Previous Topic:Reuse views in a wizard?
Next Topic:Riena 3.0 Release is ready
Goto Forum:
  


Current Time: Mon Dec 22 05:42:00 GMT 2014

Powered by FUDForum. Page generated in 0.02071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software