Class PreferencesFactoryImpl

All Implemented Interfaces:

@Component public class PreferencesFactoryImpl extends Object implements PreferencesFactory
Factory for Preferences objects.

Each call to getPreferences(Node) results in reading all preferences of this node from the database. The entity system maintains a cache already, so I omitted to cache Preferences objects here. I then decided to make PreferencesImpl is not thread safe. Client code is always supposed to call getPreferences(Node) and not caching it.