@Priority(value=4000) public class RelocateConfigSourceInterceptor extends Object implements ConfigSourceInterceptor
EMPTY| Constructor and Description |
|---|
RelocateConfigSourceInterceptor(Function<String,String> mapping) |
RelocateConfigSourceInterceptor(Map<String,String> mappings) |
| Modifier and Type | Method and Description |
|---|---|
ConfigValue |
getValue(ConfigSourceInterceptorContext context,
String name)
Intercept the resolution of a configuration name and either return the corresponding
ConfigValue or a
custom ConfigValue built by the interceptor. |
Iterator<String> |
iterateNames(ConfigSourceInterceptorContext context)
Intercept the resolution of the configuration names.
|
Iterator<ConfigValue> |
iterateValues(ConfigSourceInterceptorContext context)
Intercept the resolution of the configuration
ConfigValue. |
public RelocateConfigSourceInterceptor(Function<String,String> mapping)
public ConfigValue getValue(ConfigSourceInterceptorContext context, String name)
ConfigSourceInterceptorConfigValue or a
custom ConfigValue built by the interceptor. Calling
ConfigSourceInterceptorContext.proceed(String) will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of ConfigValue.getValue in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextname - the configuration name being intercepted.ConfigValue with information about the name, value, config source and ordinal, or null
if the value isn't present.public Iterator<String> iterateNames(ConfigSourceInterceptorContext context)
ConfigSourceInterceptorConfigSourceInterceptorContext.iterateNames() will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of the Iterator.iterateNames in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextpublic Iterator<ConfigValue> iterateValues(ConfigSourceInterceptorContext context)
ConfigSourceInterceptorConfigValue. Calling
ConfigSourceInterceptorContext.iterateNames() will continue to execute the interceptor chain. The chain
can be short-circuited by returning another instance of the Iterator.iterateValues in interface ConfigSourceInterceptorcontext - the interceptor context. See ConfigSourceInterceptorContextConfigValue with information about the name, value, config source and ordinal.Copyright © 2018–2021. All rights reserved.