java.lang.Object
dev.orne.config.impl.PreferencesConfigOptions
Options of
Preferences based configuration builder.- Since:
- 1.0
- Version:
- 1.0, 2025-05
- Author:
- (w) Iker Hernaez
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor.Copy constructor. -
Method Summary
Modifier and TypeMethodDescription@Nullable PreferencesReturns the preferences node to use as storage of configuration properties.voidsetPreferences(Preferences preferences) Sets the preferences node to use as storage of configuration properties.voidSets the system preferences tree root node.voidsetSystemPreferences(Class<?> clazz) Sets the node for the package of the specified class on the system preferences tree.voidsetSystemPreferences(Class<?> clazz, String path) Sets the specified path relative to the node for the package of the specified class on the system preferences tree.voidsetSystemPreferences(String path) Sets the node with the specified path on the system preferences tree.voidSets the user preferences tree root node.voidsetUserPreferences(Class<?> clazz) Sets the node for the package of the specified class on the user preferences tree.voidsetUserPreferences(Class<?> clazz, String path) Set the node with the specified path relative to the node for the package of the specified class on the user preferences tree.voidsetUserPreferences(String path) Sets the node with the specified path on the user preferences tree.
-
Constructor Details
-
PreferencesConfigOptions
public PreferencesConfigOptions()Empty constructor. -
PreferencesConfigOptions
Copy constructor.- Parameters:
copy- The instance to copy.
-
-
Method Details
-
getPreferences
Returns the preferences node to use as storage of configuration properties.- Returns:
- The preferences node to use as storage of configuration properties.
-
setPreferences
Sets the preferences node to use as storage of configuration properties.- Parameters:
preferences- The preferences node to use as storage of configuration properties.
-
setUserPreferences
public void setUserPreferences()Sets the user preferences tree root node.- See Also:
-
setUserPreferences
Sets the node with the specified path on the user preferences tree.- Parameters:
path- The path of the configuration's preferences, relative to user preference tree's root node- See Also:
-
setUserPreferences
Sets the node for the package of the specified class on the user preferences tree.- Parameters:
clazz- The class which package use when calculating base node- See Also:
-
setUserPreferences
Set the node with the specified path relative to the node for the package of the specified class on the user preferences tree.- Parameters:
clazz- The class which package use when calculating base nodepath- The path of the configuration's preferences, relative to base node- See Also:
-
setSystemPreferences
public void setSystemPreferences()Sets the system preferences tree root node.- See Also:
-
setSystemPreferences
Sets the node with the specified path on the system preferences tree.- Parameters:
path- The path of the configuration's preferences, relative to root node.- See Also:
-
setSystemPreferences
Sets the node for the package of the specified class on the system preferences tree.- Parameters:
clazz- The class which package use when calculating base node.- See Also:
-
setSystemPreferences
Sets the specified path relative to the node for the package of the specified class on the system preferences tree.- Parameters:
clazz- The class which package use when calculating base nodepath- The path of the configuration's preferences, relative to base node- See Also:
-