Skip to content

Commit ee004b0

Browse files
Rename DefaultQuerydslBinderCustomizer to QuerydslBinderCustomizerDefaults.
See #206. Original Pull Request: #2292
1 parent 4e07b85 commit ee004b0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/asciidoc/repositories.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ interface UserRepository extends CrudRepository<User, String>,
16671667
<5> Exclude the `password` property from `Predicate` resolution.
16681668
====
16691669

1670-
Additionally, you can register a `DefaultQuerydslBinderCustomizer` bean to apply default Querydsl bindings before applying specific bindings from the repository or `@QuerydslPredicate`.
1670+
TIP: You can register a `QuerydslBinderCustomizerDefaults` bean holding default Querydsl bindings before applying specific bindings from the repository or `@QuerydslPredicate`.
16711671

16721672
[[core.repository-populators]]
16731673
=== Repository Populators

src/main/java/org/springframework/data/querydsl/binding/DefaultQuerydslBinderCustomizer.java src/main/java/org/springframework/data/querydsl/binding/QuerydslBinderCustomizerDefaults.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
* @author Mark Paluch
2525
* @since 2.5
2626
*/
27-
public interface DefaultQuerydslBinderCustomizer extends QuerydslBinderCustomizer<EntityPath<?>> {}
27+
public interface QuerydslBinderCustomizerDefaults extends QuerydslBinderCustomizer<EntityPath<?>> {}

src/main/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactory.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private EntityPath<?> verifyEntityPathPresent(TypeInformation<?> candidate) {
159159
}
160160

161161
/**
162-
* Obtains registered {@link DefaultQuerydslBinderCustomizer} instances from the
162+
* Obtains registered {@link QuerydslBinderCustomizerDefaults} instances from the
163163
* {@link org.springframework.beans.factory.BeanFactory}.
164164
*
165165
* @return
@@ -171,12 +171,12 @@ private QuerydslBinderCustomizer<EntityPath<?>> findDefaultCustomizer() {
171171
private QuerydslBinderCustomizer<EntityPath<?>> getDefaultQuerydslBinderCustomizer(
172172
AutowireCapableBeanFactory beanFactory) {
173173

174-
List<DefaultQuerydslBinderCustomizer> customizers = beanFactory
175-
.getBeanProvider(DefaultQuerydslBinderCustomizer.class).stream().collect(Collectors.toList());
174+
List<QuerydslBinderCustomizerDefaults> customizers = beanFactory
175+
.getBeanProvider(QuerydslBinderCustomizerDefaults.class).stream().collect(Collectors.toList());
176176

177177
return (bindings, root) -> {
178-
for (DefaultQuerydslBinderCustomizer defaultQuerydslBinderCustomizer : customizers) {
179-
defaultQuerydslBinderCustomizer.customize(bindings, root);
178+
for (QuerydslBinderCustomizerDefaults querydslBinderCustomizerDefaults : customizers) {
179+
querydslBinderCustomizerDefaults.customize(bindings, root);
180180
}
181181
};
182182
}

src/test/java/org/springframework/data/querydsl/binding/QuerydslBindingsFactoryUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void customize(QuerydslBindings bindings, QUser user) {
148148
}
149149
}
150150

151-
static class DefaultCustomizer implements DefaultQuerydslBinderCustomizer {
151+
static class DefaultCustomizer implements QuerydslBinderCustomizerDefaults {
152152

153153
@Override
154154
public void customize(QuerydslBindings bindings, EntityPath<?> root) {

0 commit comments

Comments
 (0)