Emmanuel Bourg schrieb:
Oliver Heger a écrit :
I have added a new method to the NodeHandler interface for
distinguishing between the node types.
Great, will that work with the getKeys() iterator and the expression
engines ?
Yes, it should. A major part of the basic functionality provided by
AbstractHierarchicalConfiguration is already checked by the test class.
Based on these changes I have created an initial implementation of
PreferencesConfiguration. This is only a first draft, and there is
certainly room for improvements, e.g. support for sync() operations or
an auto flush mechanism. I would also like to do some more testing and
improve the documentation.
What about providing only a constructor with a Preferences parameter ?
Preferences prefs = Preferences.systemRoot();
Configuration conf = new PreferencesConfiguration(prefs);
That looks easier to me, we don't have to duplicate the logic behind the
static methods in the Preferences class that return concrete instances.
It's up to the user to pass in the instance he wants to turn into a
Configuration.
Yes such a constructor should be added. However it may make sense to
keep the existing parameters also because we will need something like
this when the new configuration is to be integrated into
DefaultConfigurationBuilder.
Oliver
Emmanuel Bourg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]