40
40
import org .springframework .data .repository .core .support .RepositoryFactorySupport ;
41
41
import org .springframework .data .repository .query .QueryLookupStrategy ;
42
42
import org .springframework .data .repository .query .QueryLookupStrategy .Key ;
43
- import org .springframework .data .repository .query .QueryMethodEvaluationContextProvider ;
44
43
import org .springframework .data .repository .query .RepositoryQuery ;
45
44
import org .springframework .data .repository .query .ValueExpressionDelegate ;
46
- import org .springframework .lang .Nullable ;
47
45
import org .springframework .ldap .core .LdapOperations ;
48
46
import org .springframework .util .Assert ;
49
47
@@ -146,15 +144,15 @@ protected Object getTargetRepository(RepositoryInformation information) {
146
144
ldapOperations .getObjectDirectoryMapper (), information .getDomainType ());
147
145
}
148
146
149
- return getTargetRepositoryViaReflection (information , ldapOperations ,
150
- ldapOperations .getObjectDirectoryMapper (),
147
+ return getTargetRepositoryViaReflection (information , ldapOperations , ldapOperations .getObjectDirectoryMapper (),
151
148
information .getDomainType ());
152
149
}
153
150
154
151
@ Override
155
152
protected Optional <QueryLookupStrategy > getQueryLookupStrategy (Key key ,
156
153
ValueExpressionDelegate valueExpressionDelegate ) {
157
- return Optional .of (new LdapQueryLookupStrategy (ldapOperations , instantiators , mappingContext , valueExpressionDelegate ));
154
+ return Optional
155
+ .of (new LdapQueryLookupStrategy (ldapOperations , instantiators , mappingContext , valueExpressionDelegate ));
158
156
}
159
157
160
158
/**
@@ -183,8 +181,8 @@ private static boolean acceptsMappingContext(RepositoryInformation information)
183
181
return acceptsMappingContext ;
184
182
}
185
183
186
- private record LdapQueryLookupStrategy (LdapOperations ldapOperations ,
187
- EntityInstantiators instantiators , MappingContext <? extends PersistentEntity <?, ?>, ? extends PersistentProperty <?>> mappingContext ,
184
+ private record LdapQueryLookupStrategy (LdapOperations ldapOperations , EntityInstantiators instantiators ,
185
+ MappingContext <? extends PersistentEntity <?, ?>, ? extends PersistentProperty <?>> mappingContext ,
188
186
ValueExpressionDelegate valueExpressionDelegate ) implements QueryLookupStrategy {
189
187
190
188
@ Override
@@ -195,7 +193,8 @@ public RepositoryQuery resolveQuery(Method method, RepositoryMetadata metadata,
195
193
Class <?> domainType = metadata .getDomainType ();
196
194
197
195
if (queryMethod .hasQueryAnnotation ()) {
198
- return new AnnotatedLdapRepositoryQuery (queryMethod , domainType , ldapOperations , mappingContext , instantiators , valueExpressionDelegate );
196
+ return new AnnotatedLdapRepositoryQuery (queryMethod , domainType , ldapOperations , mappingContext , instantiators ,
197
+ valueExpressionDelegate );
199
198
} else {
200
199
return new PartTreeLdapRepositoryQuery (queryMethod , domainType , ldapOperations , mappingContext , instantiators );
201
200
}
0 commit comments