クラス AnnotationRepositoryConfigurationSource
java.lang.ObjectSE
org.springframework.data.repository.config.RepositoryConfigurationSourceSupport
org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource
- 実装されたすべてのインターフェース:
RepositoryConfigurationSource
アノテーションベースの
RepositoryConfigurationSource
。- 作成者:
- Oliver Gierke, Thomas Darimont, Peter Rietzler, Jens Schauder, Mark Paluch, Johannes Englmeier, Florian Cramer
フィールドサマリー
クラス org.springframework.data.repository.config.RepositoryConfigurationSourceSupport から継承されたフィールド
DEFAULT_REPOSITORY_IMPL_POSTFIX
コンストラクターのサマリー
コンストラクターコンストラクター説明AnnotationRepositoryConfigurationSource
(AnnotationMetadata metadata, ClassSE<? extends AnnotationSE> annotation, ResourceLoader resourceLoader, Environment environment, BeanDefinitionRegistry registry) 使用すべきではありません。2.2 以降。AnnotationRepositoryConfigurationSource
(AnnotationMetadata metadata, ClassSE<? extends AnnotationSE> annotation, ResourceLoader resourceLoader, Environment environment, BeanDefinitionRegistry registry, BeanNameGenerator generator) 指定されたAnnotationMetadata
とアノテーションから新しいAnnotationRepositoryConfigurationSource
を作成します。メソッドのサマリー
修飾子と型メソッド説明getAttribute
(StringSE name) 指定された名前のString
SE 属性の値を返します。<T> OptionalSE<T>
getAttribute
(StringSE name, ClassSE<T> type) 指定された名前と型の属性の値を返します。構成されたアノテーションのAnnotationAttributes
を返します。リポジトリインターフェースが配置される基本パッケージを返します。使用するリポジトリBootstrapMode
を定義します。構成をトリガーした@Enable
アノテーションのAnnotationMetadata
を返します。TypeFilter
を返し、リポジトリをスキャンするときに除外する型を定義します。protected IterableSE<TypeFilter>
TypeFilter
を返し、リポジトリをスキャンするときに含める型を定義します。クエリメソッドを解決する方法を定義するQueryLookupStrategy.Key
を返します。使用するリポジトリ基本クラスの名前、またはストア固有のデフォルトを適用する場合はOptional.empty()
を返します。リポジトリファクトリの Bean クラスの名前、またはソースで定義されていない場合はOptional.empty()
の名前を返します。カスタム実装クラスの検索に使用される構成済みの接尾辞を返します。エラー報告の目的で、人間が読めるリポジトリ設定ソースの説明を返します。構成の元となった実際のソースオブジェクトを返します。boolean
ネストされたリポジトリ、つまり他のクラスにネストされたリポジトリインターフェース定義を検討する必要があるかどうかを返します。boolean
構成がリポジトリ型をスキャンするために明示的なフィルタリングを使用するかどうかを返します。クラス org.springframework.data.repository.config.RepositoryConfigurationSourceSupport から継承されたメソッド
generateBeanName, getCandidates, toImplementationDetectionConfiguration
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.repository.config.RepositoryConfigurationSource から継承されたメソッド
getRequiredAttribute
コンストラクターの詳細
AnnotationRepositoryConfigurationSource
@DeprecatedSE(since="2.2") public AnnotationRepositoryConfigurationSource(AnnotationMetadata metadata, ClassSE<? extends AnnotationSE> annotation, ResourceLoader resourceLoader, Environment environment, BeanDefinitionRegistry registry) 使用すべきではありません。2.2 以降。BeanNameGenerator
を追加で使用するオーバーロードを使用することをお勧めします。指定されたAnnotationMetadata
とアノテーションから新しいAnnotationRepositoryConfigurationSource
を作成します。- パラメーター:
metadata
- null であってはなりません。annotation
- null であってはなりません。resourceLoader
- null であってはなりません。environment
- null であってはなりません。registry
- null であってはなりません。
AnnotationRepositoryConfigurationSource
public AnnotationRepositoryConfigurationSource(AnnotationMetadata metadata, ClassSE<? extends AnnotationSE> annotation, ResourceLoader resourceLoader, Environment environment, BeanDefinitionRegistry registry, @Nullable BeanNameGenerator generator) 指定されたAnnotationMetadata
とアノテーションから新しいAnnotationRepositoryConfigurationSource
を作成します。- パラメーター:
metadata
- null であってはなりません。annotation
- null であってはなりません。resourceLoader
- null であってはなりません。environment
- null であってはなりません。registry
- null であってはなりません。generator
- null でもかまいません。
メソッドの詳細
getBasePackages
インターフェースからコピーされた説明:RepositoryConfigurationSource
リポジトリインターフェースが配置される基本パッケージを返します。- 戻り値:
- null であってはなりません。
getQueryLookupStrategyKey
インターフェースからコピーされた説明:RepositoryConfigurationSource
クエリメソッドを解決する方法を定義するQueryLookupStrategy.Key
を返します。- 戻り値:
getNamedQueryLocation
- 戻り値:
getRepositoryImplementationPostfix
インターフェースからコピーされた説明:RepositoryConfigurationSource
カスタム実装クラスの検索に使用される構成済みの接尾辞を返します。- 戻り値:
- 使用する接尾辞、または何も設定されていない場合の
Optional.empty()
getSource
インターフェースからコピーされた説明:RepositoryConfigurationSource
構成の元となった実際のソースオブジェクトを返します。ツールによって使用され、リポジトリインスタンスが実際にどこから来たかについて視覚的なフィードバックを提供します。@return。getIncludeFilters
クラスからコピーされた説明:RepositoryConfigurationSourceSupport
TypeFilter
を返し、リポジトリをスキャンするときに含める型を定義します。デフォルトの実装は空のコレクションを返します。- オーバーライド:
- クラス
RepositoryConfigurationSourceSupport
のgetIncludeFilters
- 戻り値:
- null であってはなりません。
getExcludeFilters
クラスからコピーされた説明:RepositoryConfigurationSourceSupport
TypeFilter
を返し、リポジトリをスキャンするときに除外する型を定義します。デフォルトの実装は空のコレクションを返します。- 次で指定:
- インターフェース
RepositoryConfigurationSource
のgetExcludeFilters
- オーバーライド:
- クラス
RepositoryConfigurationSourceSupport
のgetExcludeFilters
- 戻り値:
- null であってはなりません。
getRepositoryFactoryBeanClassName
インターフェースからコピーされた説明:RepositoryConfigurationSource
リポジトリファクトリの Bean クラスの名前、またはソースで定義されていない場合はOptional.empty()
の名前を返します。- 戻り値:
getRepositoryBaseClassName
インターフェースからコピーされた説明:RepositoryConfigurationSource
使用するリポジトリ基本クラスの名前、またはストア固有のデフォルトを適用する場合はOptional.empty()
を返します。- 戻り値:
getAttributes
構成されたアノテーションのAnnotationAttributes
を返します。- 戻り値:
- 属性が null になることはありません。
getEnableAnnotationMetadata
構成をトリガーした@Enable
アノテーションのAnnotationMetadata
を返します。- 戻り値:
- enableAnnotationMetadata
shouldConsiderNestedRepositories
public boolean shouldConsiderNestedRepositories()クラスからコピーされた説明:RepositoryConfigurationSourceSupport
ネストされたリポジトリ、つまり他のクラスにネストされたリポジトリインターフェース定義を検討する必要があるかどうかを返します。- オーバーライド:
- クラス
RepositoryConfigurationSourceSupport
のshouldConsiderNestedRepositories
- 戻り値:
- コンテナーがネストされたリポジトリインターフェース定義を検索する必要がある場合は true。
getAttribute
インターフェースからコピーされた説明:RepositoryConfigurationSource
指定された名前のString
SE 属性の値を返します。名前はキャメルケースで渡される予定です。- パラメーター:
name
- null または空であってはなりません。- 戻り値:
- 指定された名前の属性、または
Optional.empty()
(構成されていないか空の場合)。
getAttribute
インターフェースからコピーされた説明:RepositoryConfigurationSource
指定された名前と型の属性の値を返します。名前はキャメルケースで渡される予定です。- パラメーター:
name
- null または空であってはなりません。type
- 検索する属性の型。- 戻り値:
- 指定された名前の属性、または
Optional.empty()
(構成されていないか空の場合)。
usesExplicitFilters
public boolean usesExplicitFilters()インターフェースからコピーされた説明:RepositoryConfigurationSource
構成がリポジトリ型をスキャンするために明示的なフィルタリングを使用するかどうかを返します。- 戻り値:
- 構成がリポジトリ型をスキャンするために明示的なフィルタリングを使用するかどうか。
getBootstrapMode
インターフェースからコピーされた説明:RepositoryConfigurationSource
使用するリポジトリBootstrapMode
を定義します。- 戻り値:
getResourceDescription
インターフェースからコピーされた説明:RepositoryConfigurationSource
エラー報告の目的で、人間が読めるリポジトリ設定ソースの説明を返します。- 戻り値:
- null でもかまいません。