users@jersey.java.net

GuiceComponentProviderFactory.isInjectPresent only looks at constructors

From: Zach Cox <zcox522_at_gmail.com>
Date: Thu, 14 May 2009 14:30:26 -0400

Is there a specific reason that
GuiceComponentProviderFactory.isInjectPresent only looks for Guice's
@Inject annotation on constructors? Guice also supports method and
field injection. By not looking for @Inject on methods and fields,
resource classes that use method or field injection but not
constructor injection are not handled by Guice at all.

Thanks,
Zach