John,
Now it works! :)
ResteasyDeployment deployment = new ResteasyDeployment();
deployment.getResourceFactories().add(
new GuiceResourceFactory(injector.getProvider(App.class),
App.class));
App.class is my resource.
Thank you for your help!!
--
Pedro
On Thu, Feb 6, 2014 at 5:30 PM, Pedro Guilherme Rafael
pedrograf...@gmail.com wrote:
John,
First, thanks for your reply.
I don't know how to register the GuiceResourceFactory. Do you have any
example?
I tried to put it on setInjectorFactoryClass, but GuiceResourceFactory is
not an implementation of InjectorFactory
interface. So, I received a 'Unable to instantiate InjectorFactory
implementation.'.
--
Pedro
On Thu, Feb 6, 2014 at 4:34 PM, John D. Ament john.d.am...@gmail.comwrote:
Pedro,
Did you register the GuiceResourceFactory as your injector factory?
John
On Thu, Feb 6, 2014 at 11:52 AM, Pedro Guilherme Rafael
pedrograf...@gmail.com wrote:
I am using resteasy, netty (NettyJaxrsServer) and guice 3.0.
I need to inject dependencies in resource classes.
Anyone can help me with it?
Thanks!
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk___
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users