Think it does the same excepted .class can use a cdi instance where
resourcecontext ignores cdi
Le 19 nov. 2014 22:42, "Sergey Beryozkin" <[email protected]> a écrit :

> JAX-RS 2.0 ResourceContext.init(MyClass.class) is definitely a more
> portable
> way to do it, though the style where a .class is used is a bit intrusive as
> far as the application code is concerned IMHO, the application code just
> does what it is supposed to do without having the code which would only
> work
> if the external party, the runtime in this case, would instantiate a class
>
> Thanks, Sergey
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Class-as-return-type-in-subresources-tp4672736p4672941.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to