users@jersey.java.net

[Jersey] ContainerRequestFilter in Guice Context

From: Виктор Булдаков <victor_at_buldakov.org>
Date: Tue, 12 Aug 2014 20:31:02 +0400
Hi, everyone!
 
I have a little question about jersey.
 
I have filter which extends ContainerRequestFilter and annotated @Provider, but it doesn't work.
I debuged WebApplicationImpl and saw that guice putted filter into providerServices, but FilterFactory doesn't call getProviders(ContainerRequestFilter.class).
 
Please tell me, if I am using filter with annotation @Provider wrong or it should be calling getProviders(ContainerRequestFilter.class) in FilterFactory?
 
Thanks!
 
Victor