Examples of ConstraintHelper


Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.traversableResolver = configurationState.getTraversableResolver();
    this.parameterNameProvider = configurationState.getParameterNameProvider();
    this.beanMetaDataManagerMap = Collections.synchronizedMap( new IdentityHashMap<ParameterNameProvider, BeanMetaDataManager>() );
    this.constraintHelper = new ConstraintHelper();
    this.constraintMappings = newHashSet();

    // HV-302; don't load XmlMappingParser if not necessary
    if ( configurationState.getMappingStreams().isEmpty() ) {
      this.xmlMetaDataProvider = null;
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.traversableResolver = configurationState.getTraversableResolver();
    this.parameterNameProvider = configurationState.getParameterNameProvider();
    this.beanMetaDataManagerMap = Collections.synchronizedMap( new IdentityHashMap<ParameterNameProvider, BeanMetaDataManager>() );
    this.constraintHelper = new ConstraintHelper();
    this.executableHelper = new ExecutableHelper();
    this.constraintMappings = newHashSet();

    // HV-302; don't load XmlMappingParser if not necessary
    if ( configurationState.getMappingStreams().isEmpty() ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.constraintValidatorFactory = configurationState.getConstraintValidatorFactory();
    this.traversableResolver = configurationState.getTraversableResolver();
    ConstraintHelper constraintHelper = new ConstraintHelper();

    List<MetaDataProvider> metaDataProviders = newArrayList();

    // HV-302; don't load XmlMappingParser if not necessary
    if ( !configurationState.getMappingStreams().isEmpty() ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.traversableResolver = configurationState.getTraversableResolver();
    this.parameterNameProvider = configurationState.getParameterNameProvider();
    ConstraintHelper constraintHelper = new ConstraintHelper();

    List<MetaDataProvider> metaDataProviders = newArrayList();

    // HV-302; don't load XmlMappingParser if not necessary
    if ( !configurationState.getMappingStreams().isEmpty() ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.traversableResolver = configurationState.getTraversableResolver();
    this.parameterNameProvider = configurationState.getParameterNameProvider();
    this.beanMetaDataManagerMap = Collections.synchronizedMap( new IdentityHashMap<ParameterNameProvider, BeanMetaDataManager>() );
    this.constraintHelper = new ConstraintHelper();
    this.typeResolutionHelper = new TypeResolutionHelper();
    this.executableHelper = new ExecutableHelper( typeResolutionHelper );

    // HV-302; don't load XmlMappingParser if not necessary
    if ( configurationState.getMappingStreams().isEmpty() ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public ValidatorFactoryImpl(ConfigurationState configurationState) {
    this.messageInterpolator = configurationState.getMessageInterpolator();
    this.traversableResolver = configurationState.getTraversableResolver();
    this.parameterNameProvider = configurationState.getParameterNameProvider();
    this.beanMetaDataManagerMap = Collections.synchronizedMap( new IdentityHashMap<ParameterNameProvider, BeanMetaDataManager>() );
    this.constraintHelper = new ConstraintHelper();
    this.typeResolutionHelper = new TypeResolutionHelper();
    this.executableHelper = new ExecutableHelper( typeResolutionHelper );

    // HV-302; don't load XmlMappingParser if not necessary
    if ( configurationState.getMappingStreams().isEmpty() ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

            Key.class,
            Item.class
        )
    );
    BeanMetaDataManager beanMetaDataManager = new BeanMetaDataManager(
        new ConstraintHelper(),
        new ExecutableHelper( new TypeResolutionHelper() ),
        new DefaultParameterNameProvider(),
        Collections.<MetaDataProvider>emptyList()
    );
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  public void setUp() {
    // Create some annotations for testing using AnnotationProxies
    AnnotationDescriptor<NotNull> descriptor = new AnnotationDescriptor<NotNull>( NotNull.class );
    NotNull notNull = AnnotationFactory.create( descriptor );
    notNullDescriptor = new ConstraintDescriptorImpl<NotNull>(
        new ConstraintHelper(),
        null,
        notNull,
        java.lang.annotation.ElementType.FIELD
    );

    AnnotationDescriptor<Size> sizeAnnotationDescriptor = new AnnotationDescriptor<Size>( Size.class );
    Size size = AnnotationFactory.create( sizeAnnotationDescriptor );
    sizeDescriptor = new ConstraintDescriptorImpl<Size>(
        new ConstraintHelper(),
        null,
        size,
        java.lang.annotation.ElementType.FIELD
    );
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

    );
  }

  private <T> BeanConfiguration<T> getBeanConfiguration(Class<T> type) {
    Set<BeanConfiguration<?>> beanConfigurations = mapping.getBeanConfigurations(
        new ConstraintHelper(),
        new DefaultParameterNameProvider()
    );

    for ( BeanConfiguration<?> beanConfiguration : beanConfigurations ) {
      if ( beanConfiguration.getBeanClass() == type ) {
View Full Code Here

Examples of org.hibernate.validator.internal.metadata.core.ConstraintHelper

  private XmlMappingParser xmlMappingParser;
  private ConstraintHelper constraintHelper;

  @BeforeMethod
  public void setupParserHelper() {
    constraintHelper = new ConstraintHelper();
    xmlMappingParser = new XmlMappingParser( constraintHelper, new DefaultParameterNameProvider() );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.