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:
-
Field Summary
Fields inherited from interface io.smallrye.config.ConfigSourceInterceptor
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisable()static voidenable()static voidenable(boolean enable) io.smallrye.config.ConfigValuestatic booleaniterateNames(io.smallrye.config.ConfigSourceInterceptorContext context) static voidrunWithDisabled(Runnable execution)
-
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
- Specified by:
iterateNamesin interfaceio.smallrye.config.ConfigSourceInterceptor
-
getValue
public io.smallrye.config.ConfigValue getValue(io.smallrye.config.ConfigSourceInterceptorContext context, String name) - Specified by:
getValuein interfaceio.smallrye.config.ConfigSourceInterceptor
-
isEnabled
public static boolean isEnabled() -
runWithDisabled
-