Skip to content

Commit

Permalink
Use Vert.x pool with Jackson
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofusco committed Jan 15, 2024
1 parent e073a61 commit f29a00f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<wildfly-client-config.version>1.0.1.Final</wildfly-client-config.version>
<wildfly-elytron.version>2.2.2.Final</wildfly-elytron.version>
<jboss-threads.version>3.5.1.Final</jboss-threads.version>
<vertx.version>4.5.1</vertx.version>
<vertx.version>4.5.2-SNAPSHOT</vertx.version>
<httpclient.version>4.5.14</httpclient.version>
<httpcore.version>4.4.16</httpcore.version>
<httpasync.version>4.1.5</httpasync.version>
Expand Down
4 changes: 4 additions & 0 deletions extensions/jackson/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.quarkus.arc.All;
import io.quarkus.arc.DefaultBean;
import io.quarkus.jackson.ObjectMapperCustomizer;
import io.vertx.core.json.jackson.HybridJacksonPool;

@ApplicationScoped
public class ObjectMapperProducer {
Expand Down Expand Up @@ -63,6 +64,7 @@ public ObjectMapper objectMapper(@All List<ObjectMapperCustomizer> customizers,
for (ObjectMapperCustomizer customizer : sortedCustomizers) {
customizer.customize(objectMapper);
}
objectMapper.getFactory().setRecyclerPool(HybridJacksonPool.getInstance());
return objectMapper;
}

Expand Down

0 comments on commit f29a00f

Please sign in to comment.