Skip to content

Commit

Permalink
Merge pull request quarkusio#34951 from geoand/quarkusio#34934
Browse files Browse the repository at this point in the history
Improve Javadoc of @CustomSerialization
  • Loading branch information
geoand authored Jul 24, 2023
2 parents c20d19e + b87954f commit e96b68a
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@
* needed
* (this type will be a generic type if the method returns such a generic type) and returns the instance of the custom
* {@code ObjectWriter}.
*
* <p>
* Quarkus will construct one instance of this {@code BiFunction} for each JAX-RS resource method that is annotated with
* {@code CustomSerialization} and once an instance is created it will be cached for subsequent usage by that resource
* method.
*
* The class MUST contain a no-args constructor and it is advisable that it contains no state that is updated outside
* <p>
* The {@code BiFunction} MUST contain a no-args constructor.
* <p>
* Furthermore, it is advisable that it contains no state that is updated outside
* its constructor.
* Furthermore, the {@code ObjectMapper} should NEVER be changed any way as it is the global ObjectMapper that is
* accessible to the entire Quarkus application.
* <p>
* Finally and most importantly, the {@code ObjectMapper} should NEVER be changed any way as it is the global ObjectMapper
* that is accessible to the entire Quarkus application.
*/
Class<? extends BiFunction<ObjectMapper, Type, ObjectWriter>> value();
}

0 comments on commit e96b68a

Please sign in to comment.