Class BeanManagerQueryRewriterProvider
java.lang.Object
org.springframework.data.jpa.repository.cdi.BeanManagerQueryRewriterProvider
- All Implemented Interfaces:
QueryRewriterProvider
A
BeanManager
-based QueryRewriterProvider
.- Since:
- 3.0
- Author:
- Greg Turnquist, Mark Paluch
-
Constructor Summary
ConstructorDescriptionBeanManagerQueryRewriterProvider
(jakarta.enterprise.inject.spi.BeanManager beanManager) -
Method Summary
Modifier and TypeMethodDescriptiongetQueryRewriter
(JpaQueryMethod method) Obtain an instance ofQueryRewriter
for aJpaQueryMethod
.
-
Constructor Details
-
BeanManagerQueryRewriterProvider
public BeanManagerQueryRewriterProvider(jakarta.enterprise.inject.spi.BeanManager beanManager)
-
-
Method Details
-
getQueryRewriter
Description copied from interface:QueryRewriterProvider
Obtain an instance ofQueryRewriter
for aJpaQueryMethod
.- Specified by:
getQueryRewriter
in interfaceQueryRewriterProvider
- Parameters:
method
- the underlying JPA query method.- Returns:
- a Java bean that implements
QueryRewriter
.
-