users@hk2.java.net

Factory scope and qualifiers

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Tue, 22 Apr 2014 02:34:53 -0400

Hi,

The Javadoc for Factory says that the provide() method must be annotated
with the scope and qualifiers that should be applied to the returned
value. On the other hand, AbstractBinder.bindFactory() allows you to
specify qualifiers and a scope.

Am I right in assuming that the AbstractBinder configuration removes the
need to annotate the provide() method (and will override any such
annotations if they exist)?

Thanks,
Gili