rmannibucau commented on PR #84:
URL: https://github.com/apache/johnzon/pull/84#issuecomment-1108819082

   @dblevins hmm, what I really dislike in this constructor is the fact I want 
to totally forbid it to be used inside the project itself for the reason 
mentionned earlier. I would be happy if you do a johnzon-snippet module 
exposing such a constructor and using `Json.createGeneratorFactory(<....>)` 
while it is not in mapper/jsonb modules. Alternative would be to ensure at 
build with a maven plugin this constructor is never used outside tests with a 
comment explaining this is not a reliable API for a generic purposes as the 
mapper/jsonb instance (agree it is simpler when you know you are UTF-8 for ex 
but it is generally not true from johnzon standpoint). Guess personally I would 
expose it in `johnzon-json-extras` a bit by default since it is already a 
generic module for such extensions not having other strong dependencies and it 
requires almost no work except having a new SnippetBis class delegating to Json 
and Snippet.
   Hope it makes sense.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to