Package io.smallrye.config
Class AbstractMappingConfigSourceInterceptor
- java.lang.Object
-
- io.smallrye.config.AbstractMappingConfigSourceInterceptor
-
- All Implemented Interfaces:
ConfigSourceInterceptor,Serializable
- Direct Known Subclasses:
FallbackConfigSourceInterceptor,RelocateConfigSourceInterceptor
public abstract class AbstractMappingConfigSourceInterceptor extends Object implements ConfigSourceInterceptor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.smallrye.config.ConfigSourceInterceptor
EMPTY
-
-
Constructor Summary
Constructors Constructor Description AbstractMappingConfigSourceInterceptor(Function<String,String> mapping)AbstractMappingConfigSourceInterceptor(Map<String,String> mappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Function<String,String>getMapping()Iterator<String>iterateNames(ConfigSourceInterceptorContext context)Intercept the resolution of the configuration names.Iterator<ConfigValue>iterateValues(ConfigSourceInterceptorContext context)Intercept the resolution of the configurationConfigValue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.config.ConfigSourceInterceptor
getValue
-
-
-
-
Method Detail
-
iterateNames
public Iterator<String> iterateNames(ConfigSourceInterceptorContext context)
Description copied from interface:ConfigSourceInterceptorIntercept the resolution of the configuration names. The Iterator names may be a subset of the total names retrieved from all the registered ConfigSources. CallingConfigSourceInterceptorContext.iterateNames()will continue to execute the interceptor chain. The chain can be short-circuited by returning another instance of the Iterator.- Specified by:
iterateNamesin interfaceConfigSourceInterceptor- Parameters:
context- the interceptor context. SeeConfigSourceInterceptorContext- Returns:
- an Iterator of Strings with configuration names.
-
iterateValues
public Iterator<ConfigValue> iterateValues(ConfigSourceInterceptorContext context)
Description copied from interface:ConfigSourceInterceptorIntercept the resolution of the configurationConfigValue. CallingConfigSourceInterceptorContext.iterateNames()will continue to execute the interceptor chain. The chain can be short-circuited by returning another instance of the Iterator.- Specified by:
iterateValuesin interfaceConfigSourceInterceptor- Parameters:
context- the interceptor context. SeeConfigSourceInterceptorContext- Returns:
- an Iterator of
ConfigValuewith information about the name, value, config source and ordinal.
-
-