public abstract class Configurations extends ObjectSE
ApplicationContext に登録できる @Configuration クラスのセット。getClasses(Configurations[]) を使用すると、1 つ以上の Configurations インスタンスからクラスを返すことができます。結果の配列は、通常 ApplicationContext および / またはカスタム ImportSelector 実装によって適用される順序付け規則に従います。 このクラスは主に、構成クラスを指定する必要があるが SpringRunner を使用できないテストでの使用を目的としています。
このクラスの実装には、@Order アノテーションを付けるか、Ordered を実装する必要があります。
UserConfigurations| 修飾子 | コンストラクターと説明 |
|---|---|
protected | Configurations(CollectionSE<ClassSE<?>> classes) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected SetSE<ClassSE<?>> | getClasses() |
static ClassSE<?>[] | getClasses(CollectionSE<Configurations> configurations) 指定されたすべての構成から、登録される順序でクラスを返します。 |
static ClassSE<?>[] | getClasses(Configurations... configurations) 指定されたすべての構成から、登録される順序でクラスを返します。 |
protected Configurations | merge(Configurations other) 同じ型の別のソースからの構成をマージします。 |
protected abstract Configurations | merge(SetSE<ClassSE<?>> mergedClasses) 構成をマージします。 |
protected CollectionSE<ClassSE<?>> | sort(CollectionSE<ClassSE<?>> classes) 構成クラスを適用する順番に並べ替えます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected Configurations(CollectionSE<ClassSE<?>> classes)
protected CollectionSE<ClassSE<?>> sort(CollectionSE<ClassSE<?>> classes)
classes - ソートするクラス protected Configurations merge(Configurations other)
other - 他の Configurations (このインスタンスと同じ型である必要があります)protected abstract Configurations merge(SetSE<ClassSE<?>> mergedClasses)
mergedClasses - マージされたクラス public static ClassSE<?>[] getClasses(Configurations... configurations)
configurations - ソース構成 public static ClassSE<?>[] getClasses(CollectionSE<Configurations> configurations)
configurations - ソース構成 Copyright © 2019 Pivotal Software, Inc.. All rights reserved.