Skip to main content



      Home
Home » Archived » Riena » How to handle System Properties?
icon5.gif  How to handle System Properties? [message #675751] Wed, 01 June 2011 07:54
Eclipse UserFriend
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 Oct 27 16:52:59 EDT 2025

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

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

Back to the top