public class DefaultPreferenceScopeResolutionStrategy extends Object implements PreferenceScopeResolutionStrategy
PreferenceScopeResolutionStrategy. To override it, just
provide a default CDI bean that implements PreferenceScopeResolutionStrategy.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPreferenceScopeResolutionStrategy() |
|
DefaultPreferenceScopeResolutionStrategy(PreferenceScopeFactory scopeFactory,
String componentKey) |
| Modifier and Type | Method and Description |
|---|---|
PreferenceScope |
getDefaultScope(List<PreferenceScope> order) |
PreferenceScopeResolutionStrategyInfo |
getInfo()
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.
|
PreferenceScopeResolver |
getScopeResolver()
Returns a scope resolver for this scope resolution strategy.
|
protected DefaultPreferenceScopeResolutionStrategy()
public DefaultPreferenceScopeResolutionStrategy(PreferenceScopeFactory scopeFactory, String componentKey)
public PreferenceScopeResolutionStrategyInfo getInfo()
PreferenceScopeResolutionStrategygetInfo in interface PreferenceScopeResolutionStrategypublic PreferenceScopeResolver getScopeResolver()
PreferenceScopeResolutionStrategygetScopeResolver in interface PreferenceScopeResolutionStrategypublic PreferenceScope getDefaultScope(List<PreferenceScope> order)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.