public class PreferenceStoreImpl extends Object implements PreferenceStore
Modifier and Type | Field and Description |
---|---|
protected PreferenceScopeResolutionStrategy |
defaultScopeResolutionStrategy |
protected PreferenceScopeFactory |
scopeFactory |
protected PreferenceStorage |
storage |
Modifier | Constructor and Description |
---|---|
protected |
PreferenceStoreImpl() |
|
PreferenceStoreImpl(PreferenceStorage storage,
PreferenceScopeFactory scopeFactory,
PreferenceScopeResolutionStrategy defaultScopeResolutionStrategy,
javax.enterprise.inject.Instance<PreferenceScopeResolutionStrategy> preferenceScopeResolutionStrategy,
javax.enterprise.inject.spi.InjectionPoint ip) |
protected PreferenceStorage storage
protected PreferenceScopeResolutionStrategy defaultScopeResolutionStrategy
protected PreferenceScopeFactory scopeFactory
protected PreferenceStoreImpl()
@Inject public PreferenceStoreImpl(PreferenceStorage storage, PreferenceScopeFactory scopeFactory, PreferenceScopeResolutionStrategy defaultScopeResolutionStrategy, javax.enterprise.inject.Instance<PreferenceScopeResolutionStrategy> preferenceScopeResolutionStrategy, javax.enterprise.inject.spi.InjectionPoint ip)
public PreferenceScopeResolutionStrategyInfo getDefaultScopeResolutionStrategyInfo()
getDefaultScopeResolutionStrategyInfo
in interface PreferenceStore
public PreferenceScopeResolver getDefaultScopeResolver()
getDefaultScopeResolver
in interface PreferenceStore
public <T> void put(PreferenceScope scope, String key, T value)
put
in interface PreferenceStore
public <T> void put(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key, T value)
put
in interface PreferenceStore
public <T> void put(String key, T value)
put
in interface PreferenceStore
public <T> void put(PreferenceScope scope, Map<String,T> valueByKey)
put
in interface PreferenceStore
public <T> void put(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Map<String,T> valueByKey)
put
in interface PreferenceStore
public <T> void put(Map<String,T> valueByKey)
put
in interface PreferenceStore
public <T> void putIfAbsent(PreferenceScope scope, String key, T value)
putIfAbsent
in interface PreferenceStore
public <T> void putIfAbsent(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key, T value)
putIfAbsent
in interface PreferenceStore
public <T> void putIfAbsent(String key, T value)
putIfAbsent
in interface PreferenceStore
public <T> void putIfAbsent(PreferenceScope scope, Map<String,T> valueByKey)
putIfAbsent
in interface PreferenceStore
public <T> void putIfAbsent(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Map<String,T> valueByKey)
putIfAbsent
in interface PreferenceStore
public <T> void putIfAbsent(Map<String,T> valueByKey)
putIfAbsent
in interface PreferenceStore
public <T> T get(PreferenceScope scope, String key)
get
in interface PreferenceStore
public <T> T get(PreferenceScope scope, String key, T defaultValue)
get
in interface PreferenceStore
public <T> T get(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
get
in interface PreferenceStore
public <T> T get(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key, T defaultValue)
get
in interface PreferenceStore
public <T> T get(String key)
get
in interface PreferenceStore
public <T> T get(String key, T defaultValue)
get
in interface PreferenceStore
public <T> PreferenceScopedValue<T> getScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key)
getScoped
in interface PreferenceStore
public <T> PreferenceScopedValue<T> getScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, String key, T defaultValue)
getScoped
in interface PreferenceStore
public <T> PreferenceScopedValue<T> getScoped(String key)
getScoped
in interface PreferenceStore
public <T> PreferenceScopedValue<T> getScoped(String key, T defaultValue)
getScoped
in interface PreferenceStore
public Map<String,Object> search(PreferenceScope scope, Collection<String> keys)
search
in interface PreferenceStore
public Map<String,Object> search(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Collection<String> keys)
search
in interface PreferenceStore
public Map<String,Object> search(Collection<String> keys)
search
in interface PreferenceStore
public Map<String,PreferenceScopedValue<Object>> searchScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Collection<String> keys)
searchScoped
in interface PreferenceStore
public Map<String,PreferenceScopedValue<Object>> searchScoped(Collection<String> keys)
searchScoped
in interface PreferenceStore
public Map<String,Object> all(PreferenceScope scope)
all
in interface PreferenceStore
public Map<String,Object> all(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
all
in interface PreferenceStore
public Map<String,Object> all()
all
in interface PreferenceStore
public Map<String,PreferenceScopedValue<Object>> allScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
allScoped
in interface PreferenceStore
public Map<String,PreferenceScopedValue<Object>> allScoped()
allScoped
in interface PreferenceStore
public void remove(PreferenceScope scope, String key)
remove
in interface PreferenceStore
public void remove(List<PreferenceScope> scopes, String key)
remove
in interface PreferenceStore
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.