Module spring.data.commons
Class RepositoryFragmentsFactoryBean<T>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFragmentsFactoryBean<T>
- All Implemented Interfaces:
Aware,BeanFactoryAware,FactoryBean<RepositoryComposition.RepositoryFragments>,InitializingBean
public class RepositoryFragmentsFactoryBean<T>
extends Object
implements FactoryBean<RepositoryComposition.RepositoryFragments>, BeanFactoryAware, 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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryFragmentsFactoryBean(List<String> fragmentBeanNames) Creates a newRepositoryFragmentsFactoryBeangivenfragmentBeanNames. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
RepositoryFragmentsFactoryBean
Creates a newRepositoryFragmentsFactoryBeangivenfragmentBeanNames.- Parameters:
fragmentBeanNames- must not be null.
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<T>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<T>
-