Annotation Type AssistedInject
-
@Target(CONSTRUCTOR) @Retention(RUNTIME) @Deprecated public @interface AssistedInject
Deprecated.FactoryProvider
now works better with the standard @Inject annotation. When using that annotation, parameters are matched by name and type rather than by position. In addition, values that use the standard @Inject constructor annotation are eligible for method interception.Constructors annotated with
@AssistedInject
indicate that they can be instantiated by theFactoryProvider
. Each constructor must exactly match one corresponding factory method within the factory interface.Constructor parameters must be either supplied by the factory interface and marked with
@Assisted
, or they must be injectable.