Interface ConfigSourceInterceptorContext

All Superinterfaces:
Serializable

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 Details

    • 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 ConfigValue with information about the name, value, config source and ordinal, or null if 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 ConfigValue with information about the name, value, config source and ordinal, or null if the value isn't present.
    • iterateNames

      Iterator<String> iterateNames()
      Returns:
      an iterator over the configuration names known to this interceptor.