public class ContextConfigurationAttributes extends ObjectSE
ContextConfigurationAttributes
は、@ContextConfiguration
を介して宣言されたコンテキスト構成属性をカプセル化します。ContextConfiguration
, SmartContextLoader.processContextConfiguration(ContextConfigurationAttributes)
, MergedContextConfiguration
修飾子と型 | メソッドと説明 |
---|---|
boolean | equals(ObjectSE other) オブジェクトの宣言クラス、場所、アノテーション付きクラス、inheritLocations フラグ、コンテキスト初期化子クラス、inheritInitializers フラグ、および ContextLoader class の両方を比較して、指定されたオブジェクトがこの ContextConfigurationAttributes インスタンスと等しいかどうかを判断します。 |
ClassSE<?>[] | getClasses() @ContextConfiguration を介して宣言されたアノテーション付きクラスを取得します。 |
ClassSE<? extends ContextLoader> | getContextLoaderClass() @ContextConfiguration を介して宣言された ContextLoader クラスを取得します。 |
ClassSE<?> | getDeclaringClass() 明示的または暗黙的に、 @ContextConfiguration アノテーションを宣言したクラスSEを取得します。 |
ClassSE<? extends ApplicationContextInitializer<?>>[] | getInitializers() @ContextConfiguration を介して宣言された ApplicationContextInitializer クラスを取得します。 |
StringSE[] | getLocations() @ContextConfiguration を介して宣言されたリソースの場所を取得します。 |
StringSE | getName() @ContextConfiguration を介して宣言されたコンテキスト階層レベルの名前を取得します。 |
boolean | hasClasses() この ContextConfigurationAttributes インスタンスにクラスベースのリソースがあるかどうかを確認します。 |
int | hashCode() 名前を除く、この ContextConfigurationAttributes インスタンスのすべてのプロパティの一意のハッシュコードを生成します。 |
boolean | hasLocations() この ContextConfigurationAttributes インスタンスにパスベースのリソースの場所があるかどうかを確認します。 |
boolean | hasResources() この ContextConfigurationAttributes インスタンスにパスベースのリソースの場所またはクラスベースのリソースがあるかどうかを確認します。 |
boolean | isInheritInitializers() @ContextConfiguration を介して宣言された inheritInitializers フラグを取得します。 |
boolean | isInheritLocations() @ContextConfiguration を介して宣言された inheritLocations フラグを取得します。 |
void | setClasses(ClassSE<?>... classes) 処理されたアノテーション付きクラスを設定し、 @ContextConfiguration を介して宣言された元の値を効果的にオーバーライドします。 |
void | setLocations(StringSE... locations) @ContextConfiguration を介して宣言された元の値を効果的にオーバーライドして、処理されたリソースの場所を設定します。 |
StringSE | toString() コンテキスト構成属性と宣言クラスの String 表現を提供します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public ContextConfigurationAttributes(ClassSE<?> declaringClass)
ContextConfigurationAttributes
インスタンスを構築します。declaringClass
- @ContextConfiguration
を明示的または暗黙的に宣言したテストクラス public ContextConfigurationAttributes(ClassSE<?> declaringClass, ContextConfiguration contextConfiguration)
@ContextConfiguration
アノテーションとそれを宣言したテストクラスの新しい ContextConfigurationAttributes
SE インスタンスを構築します。declaringClass
- @ContextConfiguration
を宣言したテストクラス contextConfiguration
- 属性を取得するためのアノテーション public ContextConfigurationAttributes(ClassSE<?> declaringClass, AnnotationAttributes annAttrs)
AnnotationAttributes
(@ContextConfiguration
アノテーションから解析された)および宣言したテストクラスの新しい ContextConfigurationAttributes
SE インスタンスを構築します。declaringClass
- @ContextConfiguration
を宣言したテストクラス annAttrs
- 属性を取得するアノテーション属性 public ContextConfigurationAttributes(ClassSE<?> declaringClass, StringSE[] locations, ClassSE<?>[] classes, boolean inheritLocations, ClassSE<? extends ApplicationContextInitializer<?>>[] initializers, boolean inheritInitializers, ClassSE<? extends ContextLoader> contextLoaderClass)
@ContextConfiguration
アノテーションとそれに対応する属性を宣言したテストクラスSEの新しい ContextConfigurationAttributes
インスタンスを作成します。declaringClass
- @ContextConfiguration
を宣言したテストクラス locations
- @ContextConfiguration
を介して宣言されたリソースの場所 classes
- @ContextConfiguration
を介して宣言されたアノテーション付きクラス inheritLocations
- @ContextConfiguration
を介して宣言された inheritLocations
フラグ initializers
- @ContextConfiguration
を介して宣言されたコンテキスト初期化子 inheritInitializers
- @ContextConfiguration
を介して宣言された inheritInitializers
フラグ contextLoaderClass
- @ContextConfiguration
を介して宣言された ContextLoader
クラス IllegalArgumentExceptionSE
- declaringClass
または contextLoaderClass
が null
の場合 public ContextConfigurationAttributes(ClassSE<?> declaringClass, StringSE[] locations, ClassSE<?>[] classes, boolean inheritLocations, ClassSE<? extends ApplicationContextInitializer<?>>[] initializers, boolean inheritInitializers, @Nullable StringSE name, ClassSE<? extends ContextLoader> contextLoaderClass)
@ContextConfiguration
アノテーションとそれに対応する属性を宣言したテストクラスSEの新しい ContextConfigurationAttributes
インスタンスを作成します。declaringClass
- @ContextConfiguration
を宣言したテストクラス locations
- @ContextConfiguration
を介して宣言されたリソースの場所 classes
- @ContextConfiguration
を介して宣言されたアノテーション付きクラス inheritLocations
- @ContextConfiguration
を介して宣言された inheritLocations
フラグ initializers
- @ContextConfiguration
を介して宣言されたコンテキスト初期化子 inheritInitializers
- @ContextConfiguration
を介して宣言された inheritInitializers
フラグ name
- コンテキスト階層のレベルの名前、または該当しない場合は null
contextLoaderClass
- @ContextConfiguration
を介して宣言された ContextLoader
クラス IllegalArgumentExceptionSE
- declaringClass
または contextLoaderClass
が null
の場合 public ClassSE<?> getDeclaringClass()
@ContextConfiguration
アノテーションを宣言したクラスSEを取得します。null
)public void setClasses(ClassSE<?>... classes)
@ContextConfiguration
を介して宣言された元の値を効果的にオーバーライドします。getClasses()
public ClassSE<?>[] getClasses()
@ContextConfiguration
を介して宣言されたアノテーション付きクラスを取得します。 メモ: これは変更可能なプロパティです。戻り値は、@ContextConfiguration
を介して宣言された元の値と一致しない処理された値を表す場合があります。
ContextConfiguration.classes()
, setClasses(Class[])
public boolean hasClasses()
ContextConfigurationAttributes
インスタンスにクラスベースのリソースがあるかどうかを確認します。classes
配列が空でない場合は true
hasResources()
, hasLocations()
public void setLocations(StringSE... locations)
@ContextConfiguration
を介して宣言された元の値を効果的にオーバーライドして、処理されたリソースの場所を設定します。getLocations()
public StringSE[] getLocations()
@ContextConfiguration
を介して宣言されたリソースの場所を取得します。 メモ: これは変更可能なプロパティです。戻り値は、@ContextConfiguration
を介して宣言された元の値と一致しない処理された値を表す場合があります。
ContextConfiguration.value()
, ContextConfiguration.locations()
, setLocations(java.lang.String...)
public boolean hasLocations()
ContextConfigurationAttributes
インスタンスにパスベースのリソースの場所があるかどうかを確認します。locations
配列が空でない場合は true
hasResources()
, hasClasses()
public boolean hasResources()
ContextConfigurationAttributes
インスタンスにパスベースのリソースの場所またはクラスベースのリソースがあるかどうかを確認します。locations
または classes
配列が空でない場合は true
hasLocations()
, hasClasses()
public boolean isInheritLocations()
@ContextConfiguration
を介して宣言された inheritLocations
フラグを取得します。inheritLocations
フラグ ContextConfiguration.inheritLocations()
public ClassSE<? extends ApplicationContextInitializer<?>>[] getInitializers()
@ContextConfiguration
を介して宣言された ApplicationContextInitializer
クラスを取得します。ApplicationContextInitializer
クラス public boolean isInheritInitializers()
@ContextConfiguration
を介して宣言された inheritInitializers
フラグを取得します。inheritInitializers
フラグ @Nullable public StringSE getName()
@ContextConfiguration
を介して宣言されたコンテキスト階層レベルの名前を取得します。null
ContextConfiguration.name()
public ClassSE<? extends ContextLoader> getContextLoaderClass()
@ContextConfiguration
を介して宣言された ContextLoader
クラスを取得します。ContextLoader
クラス ContextConfiguration.loader()
public boolean equals(@Nullable ObjectSE other)
ContextLoader class
の両方を比較して、指定されたオブジェクトがこの ContextConfigurationAttributes
インスタンスと等しいかどうかを判断します。public int hashCode()
ContextConfigurationAttributes
インスタンスのすべてのプロパティの一意のハッシュコードを生成します。ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE