-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix object mapper generation for all primitive types implement nested types in generated object mapper implement SecureField annotation support avoid generating mapper for pojo with unknown jackson annotations implement collections serialization fix all tests in rest-jackson module wip wip refactor and simplification performance tuning make reflection-free serializers generation opt-in add @produces annotation to SimpleJsonResource rest endpoints where appropriate
- Loading branch information
1 parent
92eef40
commit 3b2d10b
Showing
12 changed files
with
684 additions
and
84 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
.../io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonOptimizationConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.quarkus.resteasy.reactive.jackson.deployment.processor; | ||
|
||
import java.util.function.BooleanSupplier; | ||
|
||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
/** | ||
* Jackson optimization configuration. | ||
*/ | ||
@ConfigMapping(prefix = "quarkus.jackson.optimization") | ||
@ConfigRoot(phase = ConfigPhase.BUILD_TIME) | ||
public interface JacksonOptimizationConfig { | ||
|
||
/** | ||
* Enable build time generation of reflection-free Jackson serializers. | ||
*/ | ||
@WithDefault("false") | ||
boolean enableReflectionFreeSerializers(); | ||
|
||
class IsReflectionFreeSerializersEnabled implements BooleanSupplier { | ||
JacksonOptimizationConfig config; | ||
|
||
public boolean getAsBoolean() { | ||
return config.enableReflectionFreeSerializers(); | ||
} | ||
} | ||
} |
416 changes: 416 additions & 0 deletions
416
...a/io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonSerializerFactory.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.