Class DefaultPreferenceScopeResolver
- java.lang.Object
-
- org.uberfire.preferences.shared.impl.DefaultPreferenceScopeResolver
-
- All Implemented Interfaces:
PreferenceScopeResolver
@Portable public class DefaultPreferenceScopeResolver extends Object implements PreferenceScopeResolver
Default scope resolver forDefaultPreferenceScopeResolutionStrategy. If you use anotherPreferenceScopeResolutionStrategyimplementation, you should provide your own portable resolver when implementinggetScopeResolver.
-
-
Constructor Summary
Constructors Constructor Description DefaultPreferenceScopeResolver(List<PreferenceScope> order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreferenceScoperesolve(String... scopeTypes)Returns a PreferenceScope that belongs to the resolution strategy hierarchy, based on the passed types.
-
-
-
Constructor Detail
-
DefaultPreferenceScopeResolver
public DefaultPreferenceScopeResolver(List<PreferenceScope> order)
-
-
Method Detail
-
resolve
public PreferenceScope resolve(String... scopeTypes)
Description copied from interface:PreferenceScopeResolverReturns a PreferenceScope that belongs to the resolution strategy hierarchy, based on the passed types.- Specified by:
resolvein interfacePreferenceScopeResolver- Parameters:
scopeTypes- Scope types associated to the desired scope.- Returns:
- The PreferenceScope related to the passed types (if it exists, null otherwise).
-
-