org.springframework.roo.classpath.preferences
Interface PreferencesService
- All Known Implementing Classes:
- PreferencesServiceImpl
public interface PreferencesService
Manages user preferences. Use this interface instead of the Java
Preferences API in order to minimise coupling, both
for increased testability and to allow for alternative implementations.
- Since:
- 1.2.0
- Author:
- Andrew Swan
getPreferencesFor
Preferences getPreferencesFor(Class<?> owningClass)
- Returns the user's preferences for the package in which the given class
resides.
- Parameters:
owningClass - the class for whose package to retrieve the user's
preferences (required)
- Returns:
- a non-
null instance - See Also:
Preferences#userNodeForPackage(Class)
Copyright © 2009–2015. All rights reserved.