Class 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static final org.apache.logging.log4j.Logger log
      • underylingServiceConfigReadOnly

        @NonNull
        private final com.funnelback.config.configtypes.service.ServiceConfigReadOnly underylingServiceConfigReadOnly
      • keyFinder

        private com.funnelback.config.keys.ConfigKeyFinder keyFinder
    • Constructor Detail

      • ServerConfigReadOnlyWhichAlsoHasAStringGetMethod

        public ServerConfigReadOnlyWhichAlsoHasAStringGetMethod​(@NonNull
                                                                com.funnelback.config.configtypes.service.ServiceConfigReadOnly underylingServiceConfigReadOnly)
    • 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 interface com.funnelback.config.configtypes.service.ServiceConfigReadOnly
      • getDefault

        public <T> T getDefault​(com.funnelback.config.configtypes.service.ServiceConfigOptionDefinition<T> arg0)
        Specified by:
        getDefault in interface com.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 interface com.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 interface com.funnelback.config.configtypes.service.ServiceConfigReadOnly
      • getRawKeys

        public java.util.Set<java.lang.String> getRawKeys()
        Specified by:
        getRawKeys in interface com.funnelback.config.configtypes.service.ServiceConfigReadOnly