@@ -118,7 +118,8 @@ private synchronized void cacheRepositoryFactory(String name) {
118
118
}
119
119
120
120
/**
121
- * Returns whether we have a repository instance registered to manage instances of the given domain class.
121
+ * Returns whether we have a repository instance registered to manage instances of the given domain class. The given
122
+ * {@code domainClass} is unwrapped to the actual user class if necessary.
122
123
*
123
124
* @param domainClass must not be {@literal null}.
124
125
* @return
@@ -133,7 +134,8 @@ public boolean hasRepositoryFor(Class<?> domainClass) {
133
134
}
134
135
135
136
/**
136
- * Returns the repository managing the given domain class.
137
+ * Returns the repository managing the given domain class. The given {@code domainClass} is unwrapped to the actual
138
+ * user class if necessary.
137
139
*
138
140
* @param domainClass must not be {@literal null}.
139
141
* @return
@@ -149,12 +151,13 @@ public Optional<Object> getRepositoryFor(Class<?> domainClass) {
149
151
}
150
152
151
153
/**
152
- * Returns the {@link RepositoryFactoryInformation} for the given domain class. The given < code>code</code> is
153
- * converted to the actual user class if necessary, @see ProxyUtils#getUserClass .
154
+ * Returns the {@link RepositoryFactoryInformation} for the given domain class. The given {@ code domainClass} is
155
+ * unwrapped to the actual user class if necessary.
154
156
*
155
157
* @param domainClass must not be {@literal null}.
156
158
* @return the {@link RepositoryFactoryInformation} for the given domain class or {@literal null} if no repository
157
159
* registered for this domain class.
160
+ * @see ProxyUtils#getUserClass
158
161
*/
159
162
private RepositoryFactoryInformation <Object , Object > getRepositoryFactoryInfoFor (Class <?> domainClass ) {
160
163
@@ -175,10 +178,12 @@ private RepositoryFactoryInformation<Object, Object> getRepositoryFactoryInfoFor
175
178
}
176
179
177
180
/**
178
- * Returns the {@link EntityInformation} for the given domain class.
181
+ * Returns the {@link EntityInformation} for the given domain class. The given {@code domainClass} is unwrapped to the
182
+ * actual user class if necessary.
179
183
*
180
184
* @param domainClass must not be {@literal null}.
181
185
* @return
186
+ * @see ProxyUtils#getUserClass
182
187
*/
183
188
@ SuppressWarnings ("unchecked" )
184
189
public <T , S > EntityInformation <T , S > getEntityInformationFor (Class <?> domainClass ) {
@@ -189,11 +194,13 @@ public <T, S> EntityInformation<T, S> getEntityInformationFor(Class<?> domainCla
189
194
}
190
195
191
196
/**
192
- * Returns the {@link RepositoryInformation} for the given domain class.
197
+ * Returns the {@link RepositoryInformation} for the given domain class. The given {@code domainClass} is unwrapped to
198
+ * the actual user class if necessary.
193
199
*
194
200
* @param domainClass must not be {@literal null}.
195
201
* @return the {@link RepositoryInformation} for the given domain class or {@literal Optional#empty()} if no
196
202
* repository registered for this domain class.
203
+ * @see ProxyUtils#getUserClass
197
204
*/
198
205
public Optional <RepositoryInformation > getRepositoryInformationFor (Class <?> domainClass ) {
199
206
@@ -205,11 +212,13 @@ public Optional<RepositoryInformation> getRepositoryInformationFor(Class<?> doma
205
212
}
206
213
207
214
/**
208
- * Returns the {@link RepositoryInformation} for the given domain type.
215
+ * Returns the {@link RepositoryInformation} for the given domain type. The given {@code domainType} is unwrapped to
216
+ * the actual user class if necessary.
209
217
*
210
218
* @param domainType must not be {@literal null}.
211
219
* @return the {@link RepositoryInformation} for the given domain type.
212
220
* @throws IllegalArgumentException in case no {@link RepositoryInformation} could be found for the given domain type.
221
+ * @see ProxyUtils#getUserClass
213
222
*/
214
223
public RepositoryInformation getRequiredRepositoryInformation (Class <?> domainType ) {
215
224
@@ -235,11 +244,13 @@ public Optional<RepositoryInformation> getRepositoryInformation(Class<?> reposit
235
244
236
245
/**
237
246
* Returns the {@link PersistentEntity} for the given domain class. Might return {@literal null} in case the module
238
- * storing the given domain class does not support the mapping subsystem.
247
+ * storing the given domain class does not support the mapping subsystem. The given {@code domainClass} is unwrapped
248
+ * to the actual user class if necessary.
239
249
*
240
250
* @param domainClass must not be {@literal null}.
241
251
* @return the {@link PersistentEntity} for the given domain class or {@literal null} if no repository is registered
242
252
* for the domain class or the repository is not backed by a {@link MappingContext} implementation.
253
+ * @see ProxyUtils#getUserClass
243
254
*/
244
255
public PersistentEntity <?, ?> getPersistentEntity (Class <?> domainClass ) {
245
256
@@ -248,10 +259,12 @@ public Optional<RepositoryInformation> getRepositoryInformation(Class<?> reposit
248
259
}
249
260
250
261
/**
251
- * Returns the {@link QueryMethod}s contained in the repository managing the given domain class.
262
+ * Returns the {@link QueryMethod}s contained in the repository managing the given domain class. The given
263
+ * {@code domainClass} is unwrapped to the actual user class if necessary.
252
264
*
253
265
* @param domainClass must not be {@literal null}.
254
266
* @return
267
+ * @see ProxyUtils#getUserClass
255
268
*/
256
269
public List <QueryMethod > getQueryMethodsFor (Class <?> domainClass ) {
257
270
0 commit comments