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
ConstructorDescriptionRepositoryFragmentsFactoryBean
(List<String> fragmentBeanNames) Creates a newRepositoryFragmentsFactoryBean
givenfragmentBeanNames
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
RepositoryFragmentsFactoryBean
Creates a newRepositoryFragmentsFactoryBean
givenfragmentBeanNames
.- Parameters:
fragmentBeanNames
- must not be null.
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
getObject
- Specified by:
getObject
in interfaceFactoryBean<T>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<T>
-