Package io.smallrye.config
Class RelocateConfigSourceInterceptor
- java.lang.Object
-
- io.smallrye.config.AbstractMappingConfigSourceInterceptor
-
- io.smallrye.config.RelocateConfigSourceInterceptor
-
- All Implemented Interfaces:
ConfigSourceInterceptor,Serializable
@Priority(3300) public class RelocateConfigSourceInterceptor extends AbstractMappingConfigSourceInterceptor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.smallrye.config.ConfigSourceInterceptor
EMPTY
-
-
Constructor Summary
Constructors Constructor Description RelocateConfigSourceInterceptor(Function<String,String> mapping)RelocateConfigSourceInterceptor(Map<String,String> mappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigValuegetValue(ConfigSourceInterceptorContext context, String name)Intercept the resolution of a configuration name and either return the correspondingConfigValueor a customConfigValuebuilt by the interceptor.-
Methods inherited from class io.smallrye.config.AbstractMappingConfigSourceInterceptor
getMapping, iterateNames, iterateValues
-
-
-
-
Method Detail
-
getValue
public ConfigValue getValue(ConfigSourceInterceptorContext context, String name)
Description copied from interface:ConfigSourceInterceptorIntercept the resolution of a configuration name and either return the correspondingConfigValueor a customConfigValuebuilt by the interceptor. CallingConfigSourceInterceptorContext.proceed(String)will continue to execute the interceptor chain. The chain can be short-circuited by returning another instance ofConfigValue.- Parameters:
context- the interceptor context. SeeConfigSourceInterceptorContextname- the configuration name being intercepted.- Returns:
- a
ConfigValuewith information about the name, value, config source and ordinal, ornullif the value isn't present.
-
-