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 ?


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.

Emmanuel Bourg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to