Annotation Interface ExplicitParamInjection


@Retention(RUNTIME) public @interface ExplicitParamInjection
An annotation used to enforce explicit parameter annotation. When applied and set to true, Weld will only attempt to resolve method parameters which have qualifiers. In case no qualifier is required for your bean, add the Default qualifier, see CDI specification for in depth explanation on qualifiers. This annotation can be applied either on a test class, in which case it affects parameter injection in all methods, or on a test method. Nested classes inherit the behavior declared by their enclosing class but can re-declare this annotation along with the value() parameter to override the behavior.
Author:
Matej Novotny
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If set to true, Weld will only attempt to resolve parameters which have CDI qualifier annotations.
  • Element Details

    • value

      boolean value
      If set to true, Weld will only attempt to resolve parameters which have CDI qualifier annotations.
      Returns:
      true by default; can be explicitly set to false to make Weld attempt to resolve all parameters
      Default:
      true