@Priority(value=3400) public class FallbackConfigSourceInterceptor extends Object implements ConfigSourceInterceptor
EMPTY| Constructor and Description |
|---|
FallbackConfigSourceInterceptor(Function<String,String> mapping) |
FallbackConfigSourceInterceptor(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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititerateNames, iterateValuespublic FallbackConfigSourceInterceptor(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.Copyright © 2018–2020. All rights reserved.