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