Package org.jboss.weld.junit5
Annotation Type 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 ElementsModifier and TypeOptional ElementDescriptionbooleanIf set totrue, Weld will only attempt to resolve parameters which have CDI qualifier annotations.
-
Element Details
-
value
boolean valueIf set totrue, Weld will only attempt to resolve parameters which have CDI qualifier annotations.- Returns:
trueby default; can be explicitly set tofalseto make Weld attempt to resolve all parameters
- Default:
- true
-