johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: Instantiation Patterns...
Date Sat, 24 Jun 2017 12:19:23 GMT
Are there docs on how to provide my own AccessMode implementation?



On Sat, Jun 24, 2017 at 8:16 AM Romain Manni-Bucau <rmannibucau@gmail.com>
wrote:

> Using a custom accessmode you can.
>
> Side note: we have constructor support I think.
>
> Le 24 juin 2017 13:59, "James Carman" <james@carmanconsulting.com> a
> écrit :
>
> > Current, with Johnzon, I can't instantiate objects for classes where I
> have
> > no default constructor available.  With GSON, it supports this using the
> > Unsafe class I believe.  Is there a way for me to provide my own
> > instantiator implementation (I'd probably pick Objenesis)?  I don't want
> to
> > have to provide default constructors for all of my immutable "request"
> > objects when using Johnzon in my JAX-RS MessageBodyReader/
> > MessageBodyWriter.
> >
> > Thanks,
> >
> > James
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message