40
40
* Should not be used directly, prefer {@link HibernateValidatorConfiguration} or
41
41
* {@link PredefinedScopeHibernateValidatorConfiguration}.
42
42
*
43
+ * @param <S> The actual type of the configuration.
44
+ *
43
45
* @author Emmanuel Bernard
44
46
* @author Gunnar Morling
45
47
* @author Kevin Pollet <[email protected] > (C) 2011 SERLI
@@ -75,8 +77,8 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
75
77
String ALLOW_PARALLEL_METHODS_DEFINE_PARAMETER_CONSTRAINTS = "hibernate.validator.allow_parallel_method_parameter_constraint" ;
76
78
77
79
/**
78
- * @deprecated planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.
79
80
* @since 5.2
81
+ * @deprecated planned for removal. Use hibernate.validator.constraint_mapping_contributors instead.
80
82
*/
81
83
@ Deprecated
82
84
String CONSTRAINT_MAPPING_CONTRIBUTOR = "hibernate.validator.constraint_mapping_contributor" ;
@@ -230,7 +232,6 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
230
232
*
231
233
* @return the default {@code ValueExtractor} implementations compliant
232
234
* with the specification
233
- *
234
235
* @since 6.0
235
236
*/
236
237
@ Incubating
@@ -241,9 +242,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
241
242
* will be added to the constraints configured via annotations and/or xml.
242
243
*
243
244
* @param mapping {@code ConstraintMapping} instance containing programmatic configured constraints
244
- *
245
245
* @return {@code this} following the chaining method pattern
246
- *
247
246
* @throws IllegalArgumentException if {@code mapping} is {@code null}
248
247
*/
249
248
S addMapping (ConstraintMapping mapping );
@@ -253,7 +252,6 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
253
252
* will stop on the first constraint violation detected.
254
253
*
255
254
* @param failFast {@code true} to enable fail fast, {@code false} otherwise.
256
- *
257
255
* @return {@code this} following the chaining method pattern
258
256
*/
259
257
S failFast (boolean failFast );
@@ -269,9 +267,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
269
267
* last fallback through Hibernate Validator's own class loader.
270
268
*
271
269
* @param externalClassLoader The class loader for loading user-provided resources.
272
- *
273
270
* @return {@code this} following the chaining method pattern
274
- *
275
271
* @since 5.2
276
272
*/
277
273
S externalClassLoader (ClassLoader externalClassLoader );
@@ -288,9 +284,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
288
284
* </pre>
289
285
*
290
286
* @param allow flag determining whether validation will allow overriding to alter parameter constraints.
291
- *
292
287
* @return {@code this} following the chaining method pattern
293
- *
294
288
* @since 5.3
295
289
*/
296
290
S allowOverridingMethodAlterParameterConstraint (boolean allow );
@@ -308,9 +302,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
308
302
* </pre>
309
303
*
310
304
* @param allow flag determining whether validation will allow multiple cascaded validation on return values.
311
- *
312
305
* @return {@code this} following the chaining method pattern
313
- *
314
306
* @since 5.3
315
307
*/
316
308
S allowMultipleCascadedValidationOnReturnValues (boolean allow );
@@ -328,9 +320,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
328
320
* </pre>
329
321
*
330
322
* @param allow flag determining whether validation will allow parameter constraints in parallel hierarchies
331
- *
332
323
* @return {@code this} following the chaining method pattern
333
- *
334
324
* @since 5.3
335
325
*/
336
326
S allowParallelMethodsDefineParameterConstraints (boolean allow );
@@ -344,9 +334,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
344
334
*
345
335
* @param enabled flag determining whether per validation call caching is enabled for {@code TraversableResolver}
346
336
* results.
347
- *
348
337
* @return {@code this} following the chaining method pattern
349
- *
350
338
* @since 6.0.3
351
339
*/
352
340
S enableTraversableResolverResultCache (boolean enabled );
@@ -356,9 +344,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
356
344
* used to evaluate script expressions for {@link ScriptAssert} and {@link ParameterScriptAssert} constraints.
357
345
*
358
346
* @param scriptEvaluatorFactory the {@link ScriptEvaluatorFactory} to be used
359
- *
360
347
* @return {@code this} following the chaining method pattern
361
- *
362
348
* @since 6.0.3
363
349
*/
364
350
@ Incubating
@@ -369,9 +355,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
369
355
* {@link Past}/{@link PastOrPresent} and {@link Future}/{@link FutureOrPresent}.
370
356
*
371
357
* @param temporalValidationTolerance the acceptable tolerance
372
- *
373
358
* @return {@code this} following the chaining method pattern
374
- *
375
359
* @since 6.0.5
376
360
*/
377
361
@ Incubating
@@ -382,9 +366,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
382
366
* times, only the payload passed last will be propagated.
383
367
*
384
368
* @param constraintValidatorPayload the payload passed to constraint validators
385
- *
386
369
* @return {@code this} following the chaining method pattern
387
- *
388
370
* @since 6.0.8
389
371
*/
390
372
@ Incubating
@@ -395,9 +377,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
395
377
* or not.
396
378
*
397
379
* @param getterPropertySelectionStrategy the {@link GetterPropertySelectionStrategy} to be used
398
- *
399
380
* @return {@code this} following the chaining method pattern
400
- *
401
381
* @since 6.1.0
402
382
*/
403
383
@ Incubating
@@ -408,9 +388,7 @@ public interface BaseHibernateValidatorConfiguration<S extends BaseHibernateVali
408
388
* when constructing a property path as the one returned by {@link ConstraintViolation#getPropertyPath()}.
409
389
*
410
390
* @param propertyNodeNameProvider the {@link PropertyNodeNameProvider} to be used
411
- *
412
391
* @return {@code this} following the chaining method pattern
413
- *
414
392
* @since 6.1.0
415
393
*/
416
394
@ Incubating
@@ -458,9 +436,7 @@ default S locales(Locale... locales) {
458
436
* Allows setting a locale resolver, defining how the locale will be resolved when interpolating the message of a constraint violation.
459
437
*
460
438
* @param localeResolver the {@link LocaleResolver} to be used
461
- *
462
439
* @return {@code this} following the chaining method pattern
463
- *
464
440
* @since 6.1.1
465
441
*/
466
442
@ Incubating
@@ -479,7 +455,6 @@ default S locales(Locale... locales) {
479
455
*
480
456
* @param expressionLanguageFeatureLevel the {@link ExpressionLanguageFeatureLevel} to be used
481
457
* @return {@code this} following the chaining method pattern
482
- *
483
458
* @since 6.2
484
459
*/
485
460
@ Incubating
@@ -492,7 +467,6 @@ default S locales(Locale... locales) {
492
467
*
493
468
* @param expressionLanguageFeatureLevel the {@link ExpressionLanguageFeatureLevel} to be used
494
469
* @return {@code this} following the chaining method pattern
495
- *
496
470
* @since 6.2
497
471
*/
498
472
@ Incubating
@@ -505,7 +479,6 @@ default S locales(Locale... locales) {
505
479
*
506
480
* @param enabled flag determining whether validated values will be printed out into trace level logs or not.
507
481
* @return {@code this} following the chaining method pattern
508
- *
509
482
* @since 8.0
510
483
*/
511
484
@ Incubating
@@ -517,9 +490,7 @@ default S locales(Locale... locales) {
517
490
* constraints generated a violation.
518
491
*
519
492
* @param failFastOnPropertyViolation {@code true} to enable the skipping mode, {@code false} otherwise.
520
- *
521
493
* @return {@code this} following the chaining method pattern
522
- *
523
494
* @since 9.0
524
495
*/
525
496
@ Incubating
0 commit comments