Name: bsC130419 Date: 08/20/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
I love the Preferences class, and I respect the reason why all of the getXxxx()
methods require defaults. However, sometimes there are preferences of the
user's that have an important affect on what the user is expecting. I do not
want to revert to a system default without at least informing them.
I could use the Properties class for these important preferences, but I love
the hierarchical nature of Preferences. It also would seem to be a
unnecessarily large code change if the business requirement of what was
important and what was not changed.
So I propose a few different solutions to my issue. I would love to have all
of these methods, but any one of them would work. These methods would be on
the Preferences class:
public boolean keyExists(String key) throws BackingStoreException;
public String get(String key) throws BackingStoreException;
public static boolean isBackingStoreAvailable();
Thanks for listening!
(Review ID: 130259)
======================================================================
###@###.### 11/3/04 20:31 GMT
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
I love the Preferences class, and I respect the reason why all of the getXxxx()
methods require defaults. However, sometimes there are preferences of the
user's that have an important affect on what the user is expecting. I do not
want to revert to a system default without at least informing them.
I could use the Properties class for these important preferences, but I love
the hierarchical nature of Preferences. It also would seem to be a
unnecessarily large code change if the business requirement of what was
important and what was not changed.
So I propose a few different solutions to my issue. I would love to have all
of these methods, but any one of them would work. These methods would be on
the Preferences class:
public boolean keyExists(String key) throws BackingStoreException;
public String get(String key) throws BackingStoreException;
public static boolean isBackingStoreAvailable();
Thanks for listening!
(Review ID: 130259)
======================================================================
###@###.### 11/3/04 20:31 GMT