Class RepositoryFragmentConfiguration

java.lang.Object
org.springframework.data.repository.config.RepositoryFragmentConfiguration

public final class RepositoryFragmentConfiguration extends Object
Fragment configuration consisting of an interface name and the implementation class name.
Since:
2.0
Author:
Mark Paluch, Oliver Gierke
  • Constructor Details

    • RepositoryFragmentConfiguration

      public RepositoryFragmentConfiguration(String interfaceName, String className)
      Creates a RepositoryFragmentConfiguration given interfaceName and className of the implementation.
      Parameters:
      interfaceName - must not be null or empty.
      className - must not be null or empty.
    • RepositoryFragmentConfiguration

      public RepositoryFragmentConfiguration(String interfaceName, AbstractBeanDefinition beanDefinition)
      Creates a RepositoryFragmentConfiguration given interfaceName and AbstractBeanDefinition of the implementation.
      Parameters:
      interfaceName - must not be null or empty.
      beanDefinition - must not be null.
  • Method Details

    • getImplementationBeanName

      public String getImplementationBeanName()
      Returns:
      name of the implementation bean.
    • getFragmentBeanName

      public String getFragmentBeanName()
      Returns:
      name of the implementation fragment bean.
    • getInterfaceName

      public String getInterfaceName()
    • getClassName

      public String getClassName()
    • getBeanDefinition

      public Optional<AbstractBeanDefinition> getBeanDefinition()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object