All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.mmm.util.validation.base.jsr303.DefaultBeanValidationProcessor Maven / Gradle / Ivy

There is a newer version: 8.7.0
Show newest version
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.validation.base.jsr303;

import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorDecimalMax;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorDecimalMin;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorFutureDate;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorMax;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorMin;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorPastDate;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorPattern;
import net.sf.mmm.util.validation.base.jsr303.constraints.ConstraintProcessorSize;

/**
 * This is the default implementation of {@link BeanValidationProcessor} to be used in case no
 * {@link net.sf.mmm.util.component.api.Cdi} is available.
 *
 * @author hohwille
 * @since 7.4.0
 */
public class DefaultBeanValidationProcessor extends BeanValidationProcessorImpl {

  @Override
  protected void doInitialize() {

    super.doInitialize();
    registerProcessor(new ConstraintProcessorSize());
    registerProcessor(new ConstraintProcessorMin());
    registerProcessor(new ConstraintProcessorMax());
    registerProcessor(new ConstraintProcessorDecimalMax());
    registerProcessor(new ConstraintProcessorDecimalMin());
    registerProcessor(new ConstraintProcessorPattern());
    registerProcessor(new ConstraintProcessorFutureDate());
    registerProcessor(new ConstraintProcessorPastDate());
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy