Class QuerydslBindingsFactory
java.lang.Object
org.springframework.data.querydsl.binding.QuerydslBindingsFactory
- All Implemented Interfaces:
- Aware,- ApplicationContextAware
Factory to create 
QuerydslBindings using an EntityPathResolver.- Since:
- 1.11
- Author:
- Oliver Gierke, Christoph Strobl, Mark Paluch
- 
Constructor SummaryConstructorsConstructorDescriptionQuerydslBindingsFactory(EntityPathResolver entityPathResolver) Creates a newQuerydslBindingsFactoryusing the givenEntityPathResolver.
- 
Method SummaryModifier and TypeMethodDescriptioncreateBindingsFor(TypeInformation<?> domainType) Creates theQuerydslBindingsto be used using for the given domain type.createBindingsFor(TypeInformation<?> domainType, Class<? extends QuerydslBinderCustomizer<?>> customizer) Creates theQuerydslBindingsto be used using for the given domain type and a pre-definedQuerydslBinderCustomizer.Returns theEntityPathResolverused by the factory.voidsetApplicationContext(ApplicationContext applicationContext) 
- 
Constructor Details- 
QuerydslBindingsFactoryCreates a newQuerydslBindingsFactoryusing the givenEntityPathResolver.- Parameters:
- entityPathResolver- must not be null.
 
 
- 
- 
Method Details- 
setApplicationContext- Specified by:
- setApplicationContextin interface- ApplicationContextAware
- Throws:
- BeansException
 
- 
getEntityPathResolverReturns theEntityPathResolverused by the factory.- Returns:
- the entityPathResolver
 
- 
createBindingsForCreates theQuerydslBindingsto be used using for the given domain type. AQuerydslBinderCustomizerwill be auto-detected.- Parameters:
- domainType- must not be null.
- Returns:
- will never be null.
 
- 
createBindingsForpublic QuerydslBindings createBindingsFor(TypeInformation<?> domainType, Class<? extends QuerydslBinderCustomizer<?>> customizer) Creates theQuerydslBindingsto be used using for the given domain type and a pre-definedQuerydslBinderCustomizer.- Parameters:
- domainType- must not be null.
- customizer- the- QuerydslBinderCustomizerto use, must not be null.
- Returns:
- will never be null.
 
 
-