Class ServerConfigReadOnlyWhichAlsoHasAStringGetMethod
- java.lang.Object
-
- com.funnelback.publicui.search.model.profile.ServerConfigReadOnlyWhichAlsoHasAStringGetMethod
-
- All Implemented Interfaces:
com.funnelback.config.configtypes.service.ServiceConfigReadOnly
public class ServerConfigReadOnlyWhichAlsoHasAStringGetMethod extends java.lang.Object implements com.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
-
Field Summary
Fields Modifier and Type Field Description private com.funnelback.config.keys.ConfigKeyFinder
keyFinder
private static org.apache.logging.log4j.Logger
log
private com.funnelback.config.configtypes.service.ServiceConfigReadOnly
underylingServiceConfigReadOnly
-
Constructor Summary
Constructors Constructor Description ServerConfigReadOnlyWhichAlsoHasAStringGetMethod(com.funnelback.config.configtypes.service.ServiceConfigReadOnly underylingServiceConfigReadOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
java.lang.String
get(java.lang.String key)
private com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<?>
getConfigOptionDefinition(java.lang.String name)
Creates a ConfigOptionDefintion for a given key.<T> T
getDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
java.util.Set<java.lang.String>
getRawKeys()
<T> java.util.Optional<com.funnelback.config.generic.ValueParsedAndRaw<T>>
getValueParsedAndRawWithoutDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
<T> java.util.Optional<T>
getWithoutDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
(package private) void
setKeyFinder(com.funnelback.config.keys.ConfigKeyFinder keyFinder)
-
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String key)
-
getConfigOptionDefinition
private com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<?> getConfigOptionDefinition(java.lang.String name)
Creates a ConfigOptionDefintion for a given key.The resulting ConfigOptionDefintion does nothing special. It does nothing to find what the old or new keys look like, and makes no effort to upgrade the values.
- Parameters:
name
-- Returns:
-
setKeyFinder
void setKeyFinder(com.funnelback.config.keys.ConfigKeyFinder keyFinder)
-
get
public <T> T get(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
- Specified by:
get
in interfacecom.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
getDefault
public <T> T getDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
- Specified by:
getDefault
in interfacecom.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
getWithoutDefault
public <T> java.util.Optional<T> getWithoutDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
- Specified by:
getWithoutDefault
in interfacecom.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
getValueParsedAndRawWithoutDefault
public <T> java.util.Optional<com.funnelback.config.generic.ValueParsedAndRaw<T>> getValueParsedAndRawWithoutDefault(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
- Specified by:
getValueParsedAndRawWithoutDefault
in interfacecom.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
getRawKeys
public java.util.Set<java.lang.String> getRawKeys()
- Specified by:
getRawKeys
in interfacecom.funnelback.config.configtypes.service.ServiceConfigReadOnly
-
-