Class DisabledMappersInterceptor

java.lang.Object
org.keycloak.quarkus.runtime.configuration.DisabledMappersInterceptor
All Implemented Interfaces:
io.smallrye.config.ConfigSourceInterceptor, Serializable

@Priority(4980) public class DisabledMappersInterceptor extends Object implements io.smallrye.config.ConfigSourceInterceptor

This interceptor is responsible for ignoring disabled Keycloak properties

This interceptor should execute before the PropertyMappingInterceptor so that disabled properties are not mapped to the Quarkus properties.

The reason for the used priority is to always execute the interceptor before default Application Config Source interceptors and before the PropertyMappingInterceptor

See Also:
  • Constructor Details

    • DisabledMappersInterceptor

      public DisabledMappersInterceptor()
  • Method Details

    • enable

      public static void enable()
    • disable

      public static void disable()
    • enable

      public static void enable(boolean enable)
    • iterateNames

      public Iterator<String> iterateNames(io.smallrye.config.ConfigSourceInterceptorContext context)
      Specified by:
      iterateNames in interface io.smallrye.config.ConfigSourceInterceptor
    • getValue

      public io.smallrye.config.ConfigValue getValue(io.smallrye.config.ConfigSourceInterceptorContext context, String name)
      Specified by:
      getValue in interface io.smallrye.config.ConfigSourceInterceptor
    • isEnabled

      public static boolean isEnabled()
    • runWithDisabled

      public static void runWithDisabled(Runnable execution)