Class DefaultPreferenceScopeResolutionStrategy
- java.lang.Object
-
- org.uberfire.preferences.shared.impl.DefaultPreferenceScopeResolutionStrategy
-
- All Implemented Interfaces:
PreferenceScopeResolutionStrategy
public class DefaultPreferenceScopeResolutionStrategy extends Object implements PreferenceScopeResolutionStrategy
Default implementation forPreferenceScopeResolutionStrategy. To override it, just provide a default CDI bean that implementsPreferenceScopeResolutionStrategy.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultPreferenceScopeResolutionStrategy()DefaultPreferenceScopeResolutionStrategy(PreferenceScopeFactory scopeFactory, String componentKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreferenceScopegetDefaultScope(List<PreferenceScope> order)PreferenceScopeResolutionStrategyInfogetInfo()Defines the order of scopes that will be used when a preference value is searched, as well the scope where a preference will be persisted if none is provided.PreferenceScopeResolvergetScopeResolver()Returns a scope resolver for this scope resolution strategy.
-
-
-
Constructor Detail
-
DefaultPreferenceScopeResolutionStrategy
protected DefaultPreferenceScopeResolutionStrategy()
-
DefaultPreferenceScopeResolutionStrategy
public DefaultPreferenceScopeResolutionStrategy(PreferenceScopeFactory scopeFactory, String componentKey)
-
-
Method Detail
-
getInfo
public PreferenceScopeResolutionStrategyInfo getInfo()
Description copied from interface:PreferenceScopeResolutionStrategyDefines the order of scopes that will be used when a preference value is searched, as well the scope where a preference will be persisted if none is provided.- Specified by:
getInfoin interfacePreferenceScopeResolutionStrategy- Returns:
- Resolution strategy information.
-
getScopeResolver
public PreferenceScopeResolver getScopeResolver()
Description copied from interface:PreferenceScopeResolutionStrategyReturns a scope resolver for this scope resolution strategy.- Specified by:
getScopeResolverin interfacePreferenceScopeResolutionStrategy- Returns:
- Resolution strategy information.
-
getDefaultScope
public PreferenceScope getDefaultScope(List<PreferenceScope> order)
-
-