クラス RepositoryConfigurationSourceSupport
java.lang.ObjectSE
org.springframework.data.repository.config.RepositoryConfigurationSourceSupport
- 実装されたすべてのインターフェース:
RepositoryConfigurationSource
public abstract class RepositoryConfigurationSourceSupport
extends ObjectSE
implements RepositoryConfigurationSource
RepositoryConfigurationSource
を実装するための基本クラス。- 作成者:
- Oliver Gierke, Thomas Darimont, Peter Rietzler, Jens Schauder
フィールドサマリー
フィールドコンストラクターのサマリー
コンストラクターコンストラクター説明RepositoryConfigurationSourceSupport
(Environment environment, ClassLoaderSE classLoader, BeanDefinitionRegistry registry, BeanNameGenerator generator) 指定された環境で新しいRepositoryConfigurationSourceSupport
を作成します。メソッドのサマリー
修飾子と型メソッド説明generateBeanName
(BeanDefinition beanDefinition) beanDefinition の名前を返します。getCandidates
(ResourceLoader loader) リポジトリインスタンスを作成するリポジトリインターフェースのソースBeanDefinition
を返します。TypeFilter
を返し、リポジトリをスキャンするときに除外する型を定義します。protected IterableSE<TypeFilter>
TypeFilter
を返し、リポジトリをスキャンするときに含める型を定義します。boolean
ネストされたリポジトリ、つまり他のクラスにネストされたリポジトリインターフェース定義を検討する必要があるかどうかを返します。このRepositoryConfigurationSource
から作成されるリポジトリインスタンスのカスタム実装をスキャンするために使用されるImplementationDetectionConfiguration
を返します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.repository.config.RepositoryConfigurationSource から継承されたメソッド
getAttribute, getAttribute, getBasePackages, getBootstrapMode, getNamedQueryLocation, getQueryLookupStrategyKey, getRepositoryBaseClassName, getRepositoryFactoryBeanClassName, getRepositoryImplementationPostfix, getRequiredAttribute, getResourceDescription, getSource, usesExplicitFilters
フィールドの詳細
DEFAULT_REPOSITORY_IMPL_POSTFIX
- 関連事項:
コンストラクターの詳細
RepositoryConfigurationSourceSupport
public RepositoryConfigurationSourceSupport(Environment environment, ClassLoaderSE classLoader, BeanDefinitionRegistry registry, BeanNameGenerator generator) 指定された環境で新しいRepositoryConfigurationSourceSupport
を作成します。- パラメーター:
environment
- null であってはなりません。classLoader
- null であってはなりません。registry
- null であってはなりません。
メソッドの詳細
getCandidates
インターフェースからコピーされた説明:RepositoryConfigurationSource
リポジトリインスタンスを作成するリポジトリインターフェースのソースBeanDefinition
を返します。- 次で指定:
- インターフェース
RepositoryConfigurationSource
のgetCandidates
- 戻り値:
getExcludeFilters
TypeFilter
を返し、リポジトリをスキャンするときに除外する型を定義します。デフォルトの実装は空のコレクションを返します。- 次で指定:
- インターフェース
RepositoryConfigurationSource
のgetExcludeFilters
- 戻り値:
- null であってはなりません。
generateBeanName
インターフェースからコピーされた説明:RepositoryConfigurationSource
beanDefinition の名前を返します。- 次で指定:
- インターフェース
RepositoryConfigurationSource
のgenerateBeanName
- パラメーター:
beanDefinition
- null であってはなりません。- 戻り値:
getIncludeFilters
TypeFilter
を返し、リポジトリをスキャンするときに含める型を定義します。デフォルトの実装は空のコレクションを返します。- 戻り値:
- null であってはなりません。
shouldConsiderNestedRepositories
public boolean shouldConsiderNestedRepositories()ネストされたリポジトリ、つまり他のクラスにネストされたリポジトリインターフェース定義を検討する必要があるかどうかを返します。- 戻り値:
- コンテナーがネストされたリポジトリインターフェース定義を検索する必要がある場合は true。
toImplementationDetectionConfiguration
public ImplementationDetectionConfiguration toImplementationDetectionConfiguration(MetadataReaderFactory factory) インターフェースからコピーされた説明:RepositoryConfigurationSource
このRepositoryConfigurationSource
から作成されるリポジトリインスタンスのカスタム実装をスキャンするために使用されるImplementationDetectionConfiguration
を返します。- 次で指定:
- インターフェース
RepositoryConfigurationSource
のtoImplementationDetectionConfiguration
- 戻り値:
- null になることはありません。