Class RepositoryFragmentsFactoryBean<T>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFragmentsFactoryBean<T>
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<RepositoryComposition.RepositoryFragments>, org.springframework.beans.factory.InitializingBean

public class RepositoryFragmentsFactoryBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<RepositoryComposition.RepositoryFragments>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Factory bean for creation of RepositoryComposition.RepositoryFragments. This FactoryBean uses named bean references to look up RepositoryFragment beans and construct RepositoryComposition.RepositoryFragments.
Since:
2.0
Author:
Mark Paluch
  • Constructor Details

    • RepositoryFragmentsFactoryBean

      public RepositoryFragmentsFactoryBean(List<String> fragmentBeanNames)
      Creates a new RepositoryFragmentsFactoryBean given fragmentBeanNames.
      Parameters:
      fragmentBeanNames - must not be null.
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getObject

      @NonNull public RepositoryComposition.RepositoryFragments getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<T>
      Throws:
      Exception
    • getObjectType

      @NonNull public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<T>