Class JsonMixinModuleEntries
java.lang.Object
org.springframework.boot.jackson2.JsonMixinModuleEntries
@Deprecated(since="4.0.0",
forRemoval=true)
public final class JsonMixinModuleEntries
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Provide the mapping of JSON mixin class to consider.
- Since:
- 4.0.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.Builder forJsonMixinModuleEntries. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonMixinModuleEntriescreate(Consumer<JsonMixinModuleEntries.Builder> mixins) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specifiedJsonMixinModuleEntries.Builder.voiddoWithEntry(@Nullable ClassLoader classLoader, BiConsumer<Class<?>, Class<?>> action) Deprecated, for removal: This API element is subject to removal in a future version.Perform an action on each entry defined by this instance.static JsonMixinModuleEntriesscan(ApplicationContext context, Collection<String> basePackages) Deprecated, for removal: This API element is subject to removal in a future version.Scan the classpath for@JsonMixinin the specifiedbasePackages.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Create an instance using the specifiedJsonMixinModuleEntries.Builder.- Parameters:
mixins- a consumer of the builder- Returns:
- an instance with the state of the customized builder.
-
scan
public static JsonMixinModuleEntries scan(ApplicationContext context, Collection<String> basePackages) Deprecated, for removal: This API element is subject to removal in a future version.Scan the classpath for@JsonMixinin the specifiedbasePackages.- Parameters:
context- the application context to usebasePackages- the base packages to consider- Returns:
- an instance with the result of the scanning
-
doWithEntry
Deprecated, for removal: This API element is subject to removal in a future version.Perform an action on each entry defined by this instance. If a class needs to be resolved from its class name, the specifiedClassLoaderis used.- Parameters:
classLoader- the classloader to use to resolve class name if necessaryaction- the action to invoke on each type to mixin class entry
-
JsonMixinModuleEntries