I have a class that manages user preferences for a large software project. Any class in the project that may need to set or retrieve a user preference from a persistent store i
The JSR-10 (java.util.prefs.*) API uses a factory method with a Class> parameter to create Preferences instances. That way the API can store preferences from different classes belonging to the same package in a single file.