T
- The preference bean type implementing the interface.public interface BasePreference<T> extends Preference
Modifier and Type | Method and Description |
---|---|
default T |
defaultValue(T defaultValue)
Returns the default value of this preference object.
|
default void |
load()
Loads the preference content recursively through its properties.
|
default void |
load(ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
default void |
load(ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
default void |
load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
Loads the preference content recursively through its properties.
|
default void |
load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
default void |
load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
default void |
save()
Saves the preference content recursively through its properties.
|
default void |
save(Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
save(ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScope customScope)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScope customScope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScope customScope,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void load()
default void load(ParameterizedCommand<Throwable> errorCallback)
errorCallback
- Error callback that returns the exception that occurred (if any).default void load(ParameterizedCommand<T> successCallback, ParameterizedCommand<Throwable> errorCallback)
successCallback
- Success callback that returns the loaded preference.errorCallback
- Error callback that returns the exception that occurred (if any).default void load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.default void load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy, ParameterizedCommand<Throwable> errorCallback)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.errorCallback
- Error callback that returns the exception that occurred (if any).default void load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy, ParameterizedCommand<T> successCallback, ParameterizedCommand<Throwable> errorCallback)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.successCallback
- Success callback that returns the loaded preference.errorCallback
- Error callback that returns the exception that occurred (if any).default void save()
default void save(ParameterizedCommand<Throwable> errorCallback)
errorCallback
- Error callback that returns the exception that occurred (if any).default void save(Command successCallback, ParameterizedCommand<Throwable> errorCallback)
successCallback
- Success callback that indicates that the preference was saved.errorCallback
- Error callback that returns the exception that occurred (if any).default void save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.default void save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy, ParameterizedCommand<Throwable> errorCallback)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.errorCallback
- Error callback that returns the exception that occurred (if any).default void save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
customScopeResolutionStrategy
- Custom preference scope resolution strategy to be used.successCallback
- Success callback that indicates that the preference was saved.errorCallback
- Error callback that returns the exception that occurred (if any).default void save(PreferenceScope customScope)
customScope
- Custom preference scope to be used.default void save(PreferenceScope customScope, ParameterizedCommand<Throwable> errorCallback)
customScope
- Custom preference scope to be used.errorCallback
- Error callback that returns the exception that occurred (if any).default void save(PreferenceScope customScope, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
customScope
- Custom preference scope to be used.successCallback
- Success callback that indicates that the preference was saved.errorCallback
- Error callback that returns the exception that occurred (if any).default T defaultValue(T defaultValue)
defaultValue
- Preference to be filled and returned. It contains all child preferences already instantiated.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.