com.google.inject.assistedinject
Annotation Type 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.

@Target(value=CONSTRUCTOR)
@Retention(value=RUNTIME)
@Deprecated
public @interface AssistedInject

Constructors annotated with @AssistedInject indicate that will can be instantiated by the FactoryProvider. Each constructor must exactly 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.