File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/java/org/springframework/data/couchbase/core/mapping/event Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2020 the original author or authors
2
+ * Copyright 2012-2021 the original author or authors
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
16
16
17
17
package org .springframework .data .couchbase .core .mapping .event ;
18
18
19
- import java .util .Set ;
19
+ import jakarta .validation .ConstraintViolationException ;
20
+ import jakarta .validation .Validator ;
20
21
22
+ import java .util .Set ;
21
23
22
- import jakarta .validation .ConstraintViolationException ;
23
24
import org .slf4j .Logger ;
24
25
import org .slf4j .LoggerFactory ;
25
26
import org .springframework .data .couchbase .core .mapping .CouchbaseDocument ;
33
34
* @author Maciej Walkowiak
34
35
* @author Michael Nitschinger
35
36
* @author Mark Paluch
37
+ * @author Michael Reiche
36
38
*/
37
39
public class ValidatingCouchbaseEventListener extends AbstractCouchbaseEventListener <Object > {
38
40
39
41
private static final Logger LOG = LoggerFactory .getLogger (ValidatingCouchbaseEventListener .class );
40
42
41
- private final LocalValidatorFactoryBean validator ;
43
+ private final Validator validator ;
42
44
43
45
/**
44
46
* Creates a new {@link ValidatingCouchbaseEventListener} using the given {@link Validator}.
45
47
*
46
48
* @param validator must not be {@literal null}.
47
49
*/
48
- public ValidatingCouchbaseEventListener (LocalValidatorFactoryBean validator ) {
50
+ public ValidatingCouchbaseEventListener (Validator validator ) {
49
51
Assert .notNull (validator , "Validator must not be null!" );
50
52
this .validator = validator ;
51
53
}
You can’t perform that action at this time.
0 commit comments