Interface RepositoryFactoryBeanSupport.RepositoryFragmentsFunction
- Enclosing class:
RepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID>
public static interface RepositoryFactoryBeanSupport.RepositoryFragmentsFunction
Functional interface to obtain
RepositoryComposition.RepositoryFragments for a given BeanFactory (can be
null), EntityInformation and ValueExpressionDelegate.
This interface is used within the Framework and should not be used in application code.
- Since:
- 4.0
- Author:
- Oliver Gierke, Thomas Darimont, Mark Paluch, Johannes Englmeier
-
Method Summary
Modifier and TypeMethodDescriptiongetRepositoryFragments(@Nullable BeanFactory beanFactory, RepositoryFactoryBeanSupport.FragmentCreationContext context) ReturnRepositoryComposition.RepositoryFragmentsfor a givenBeanFactory(can be null),EntityInformationandValueExpressionDelegate.just(RepositoryComposition.RepositoryFragments fragments) Factory method to createRepositoryFactoryBeanSupport.RepositoryFragmentsFunctionfor a resolvedRepositoryComposition.RepositoryFragmentsobject.
-
Method Details
-
getRepositoryFragments
RepositoryComposition.RepositoryFragments getRepositoryFragments(@Nullable BeanFactory beanFactory, RepositoryFactoryBeanSupport.FragmentCreationContext context) ReturnRepositoryComposition.RepositoryFragmentsfor a givenBeanFactory(can be null),EntityInformationandValueExpressionDelegate.- Parameters:
beanFactory- can be null.context- the creation context.- Returns:
- the repository fragments to use.
-
just
static RepositoryFactoryBeanSupport.RepositoryFragmentsFunction just(RepositoryComposition.RepositoryFragments fragments) Factory method to createRepositoryFactoryBeanSupport.RepositoryFragmentsFunctionfor a resolvedRepositoryComposition.RepositoryFragmentsobject.- Parameters:
fragments- the fragments to use.- Returns:
- a supplier
RepositoryFactoryBeanSupport.RepositoryFragmentsFunctionreturning justfragments.
-