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 11/*
2- * Copyright 2012-2020 the original author or authors
2+ * Copyright 2012-2021 the original author or authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package org .springframework .data .couchbase .core .mapping .event ;
1818
19- import java .util .Set ;
19+ import jakarta .validation .ConstraintViolationException ;
20+ import jakarta .validation .Validator ;
2021
22+ import java .util .Set ;
2123
22- import jakarta .validation .ConstraintViolationException ;
2324import org .slf4j .Logger ;
2425import org .slf4j .LoggerFactory ;
2526import org .springframework .data .couchbase .core .mapping .CouchbaseDocument ;
3334 * @author Maciej Walkowiak
3435 * @author Michael Nitschinger
3536 * @author Mark Paluch
37+ * @author Michael Reiche
3638 */
3739public class ValidatingCouchbaseEventListener extends AbstractCouchbaseEventListener <Object > {
3840
3941 private static final Logger LOG = LoggerFactory .getLogger (ValidatingCouchbaseEventListener .class );
4042
41- private final LocalValidatorFactoryBean validator ;
43+ private final Validator validator ;
4244
4345 /**
4446 * Creates a new {@link ValidatingCouchbaseEventListener} using the given {@link Validator}.
4547 *
4648 * @param validator must not be {@literal null}.
4749 */
48- public ValidatingCouchbaseEventListener (LocalValidatorFactoryBean validator ) {
50+ public ValidatingCouchbaseEventListener (Validator validator ) {
4951 Assert .notNull (validator , "Validator must not be null!" );
5052 this .validator = validator ;
5153 }
You can’t perform that action at this time.
0 commit comments