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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryFragmentsFactoryBean
(List<String> fragmentBeanNames) Creates a newRepositoryFragmentsFactoryBean
givenfragmentBeanNames
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) 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
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getObject
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<T>
-