Package io.smallrye.config
Interface ConfigSourceInterceptorContext
-
- All Superinterfaces:
Serializable
@Experimental("Interceptor API to intercept resolution of a configuration name") public interface ConfigSourceInterceptorContext extends SerializableExposes contextual information about the intercepted invocation ofConfigSourceInterceptor. This allows implementers to control the behavior of the invocation chain.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<String>iterateNames()Proceeds to the next interceptor in the chain.Iterator<ConfigValue>iterateValues()Proceeds to the next interceptor in the chain.ConfigValueproceed(String name)Proceeds to the next interceptor in the chain.
-
-
-
Method Detail
-
proceed
ConfigValue proceed(String name)
Proceeds to the next interceptor in the chain.- Parameters:
name- the configuration name to lookup. Can be the original key.- Returns:
- a
ConfigValuewith information about the name, value, config source and ordinal, ornullif the value isn't present.
-
iterateNames
Iterator<String> iterateNames()
Proceeds to the next interceptor in the chain.- Returns:
- an Iterator of Strings with configuration names.
-
iterateValues
Iterator<ConfigValue> iterateValues()
Proceeds to the next interceptor in the chain.- Returns:
- an Iterator of
ConfigValuewith information about the name, value, config source and ordinal.
-
-