Interface RepositoryConfiguration<T extends RepositoryConfigurationSource>

All Known Implementing Classes:
DefaultRepositoryConfiguration

public interface RepositoryConfiguration<T extends RepositoryConfigurationSource>
Configuration information for a single repository instance.
Author:
Oliver Gierke, Mark Paluch
  • Method Details

    • getBasePackages

      Streamable<String> getBasePackages()
      Returns the base packages that the repository was scanned under.
      Returns:
    • getImplementationBasePackages

      Streamable<String> getImplementationBasePackages()
      Returns the base packages to scan for repository implementations.
      Returns:
      Since:
      2.0
    • getRepositoryInterface

      String getRepositoryInterface()
      Returns the interface name of the repository.
      Returns:
    • getQueryLookupStrategyKey

      Object getQueryLookupStrategyKey()
      Returns the key to resolve a QueryLookupStrategy from eventually.
      Returns:
      See Also:
    • getNamedQueriesLocation

      Optional<String> getNamedQueriesLocation()
      Returns the location of the file containing Spring Data named queries.
      Returns:
    • getRepositoryBaseClassName

      Optional<String> getRepositoryBaseClassName()
      Returns the name of the repository base class to be used or null if the store specific defaults shall be applied.
      Returns:
      Since:
      1.11
    • getRepositoryFactoryBeanClassName

      String getRepositoryFactoryBeanClassName()
      Returns the name of the repository factory bean class to be used.
      Returns:
    • getImplementationBeanName

      String getImplementationBeanName()
      Returns the custom implementation bean name to be used.
      Returns:
      Since:
      3.0
    • getRepositoryBeanName

      String getRepositoryBeanName()
      Returns the bean name of the repository to be used.
      Returns:
      Since:
      3.0
    • getSource

      @Nullable Object getSource()
      Returns the source of the RepositoryConfiguration.
      Returns:
    • getConfigurationSource

      T getConfigurationSource()
      Returns:
    • isLazyInit

      boolean isLazyInit()
      Returns whether to initialize the repository proxy lazily.
      Returns:
    • isPrimary

      boolean isPrimary()
      Returns whether the repository is the primary one for its type.
      Returns:
      true whether the repository is the primary one for its type.
      Since:
      2.3
    • getExcludeFilters

      Streamable<TypeFilter> getExcludeFilters()
      Returns the TypeFilters to be used to exclude packages from repository scanning.
      Returns:
    • toImplementationDetectionConfiguration

      ImplementationDetectionConfiguration toImplementationDetectionConfiguration(MetadataReaderFactory factory)
      Returns the ImplementationDetectionConfiguration to be used for this repository.
      Parameters:
      factory - must not be null.
      Returns:
      will never be null.
      Since:
      2.1
    • toLookupConfiguration

      Parameters:
      factory - must not be null.
      Returns:
      will never be null.
      Since:
      2.1
    • getResourceDescription

      @Nullable String getResourceDescription()
      Returns a human readable description of the repository interface declaration for error reporting purposes.
      Returns:
      can be null.
      Since:
      2.3