public static enum TestConstructor.AutowireMode extends EnumSE<TestConstructor.AutowireMode>
列挙型定数と説明 |
---|
ALL すべてのテストコンストラクターパラメーターは、コンストラクター自体に @Autowired アノテーションが付けられているかのようにオートワイヤーされます。 |
ANNOTATED 個々のテストコンストラクターパラメーターは、 @Autowired 、@Qualifier 、または @Value でアノテーションが付けられている場合、コンストラクター自体に @Autowired でアノテーションが付けられている場合にのみオートワイヤーされます。 |
修飾子と型 | メソッドと説明 |
---|---|
static TestConstructor.AutowireMode | from(StringSE name) 大文字と小文字を区別せずに、指定された名前で AutowireMode 列挙型定数を取得します。 |
static TestConstructor.AutowireMode | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static TestConstructor.AutowireMode[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final TestConstructor.AutowireMode ALL
@Autowired
アノテーションが付けられているかのようにオートワイヤーされます。ANNOTATED
public static final TestConstructor.AutowireMode ANNOTATED
@Autowired
、@Qualifier
、または @Value
でアノテーションが付けられている場合、コンストラクター自体に @Autowired
でアノテーションが付けられている場合にのみオートワイヤーされます。ALL
public static TestConstructor.AutowireMode[] values()
for (TestConstructor.AutowireMode c : TestConstructor.AutowireMode.values()) System.out.println(c);
public static TestConstructor.AutowireMode valueOf(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合 @Nullable public static TestConstructor.AutowireMode from(@Nullable StringSE name)
AutowireMode
列挙型定数を取得します。name
- 取得する列挙型定数の名前 null
valueOf(String)