Package io.smallrye.config
Interface ConfigSourceInterceptorContext
-
- All Superinterfaces:
Serializable
public interface ConfigSourceInterceptorContext extends Serializable
Exposes 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()ConfigValueproceed(String name)Proceeds to the next interceptor in the chain.ConfigValuerestart(String name)Re-calls the first 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 look up (can be the original key)- Returns:
- a
ConfigValuewith information about the name, value, config source and ordinal, ornullif the value isn't present.
-
restart
ConfigValue restart(String name)
Re-calls the first interceptor in the chain. If the original name is given, then it is possible to cause a recursive loop, so care must be taken. This method is intended to be used by relocating and other compatibility-related interceptors.- Parameters:
name- the configuration name to look up (can be the original key)- Returns:
- a
ConfigValuewith information about the name, value, config source and ordinal, ornullif the value isn't present.
-
-