Interface ConfigSourceInterceptorContext

  • All Superinterfaces:
    Serializable

    @Experimental("Interceptor API to intercept resolution of a configuration name")
    public interface ConfigSourceInterceptorContext
    extends Serializable
    Exposes contextual information about the intercepted invocation of ConfigSourceInterceptor. This allows implementers to control the behavior of the invocation 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 ConfigValue with information about the name, value, config source and ordinal, or null if 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 ConfigValue with information about the name, value, config source and ordinal.