public static enum TestConstructor.AutowireMode extends Enum<TestConstructor.AutowireMode>
Enum Constant and Description |
---|
ALL
All test constructor parameters will be autowired as if the constructor
itself were annotated with
@Autowired . |
ANNOTATED
Each individual test constructor parameter will only be autowired if it
is annotated with
@Autowired ,
@Qualifier ,
or @Value ,
or if the constructor itself is annotated with @Autowired . |
Modifier and Type | Method and Description |
---|---|
static TestConstructor.AutowireMode |
from(String name)
Get the
AutowireMode enum constant with the supplied name,
ignoring case. |
static TestConstructor.AutowireMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestConstructor.AutowireMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestConstructor.AutowireMode ALL
@Autowired
.ANNOTATED
public static final TestConstructor.AutowireMode ANNOTATED
@Autowired
,
@Qualifier
,
or @Value
,
or if the constructor itself is annotated with @Autowired
.ALL
public static TestConstructor.AutowireMode[] values()
for (TestConstructor.AutowireMode c : TestConstructor.AutowireMode.values()) System.out.println(c);
public static TestConstructor.AutowireMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static TestConstructor.AutowireMode from(@Nullable String name)
AutowireMode
enum constant with the supplied name,
ignoring case.name
- the name of the enum constant to retrievenull
if not foundvalueOf(String)