Examples of ValidationConfigType


Examples of org.apache.openejb.jee.bval.ValidationConfigType

        }

        final Source value = getSource(module.getAltDDs().get("validation.xml"));
        if (value != null) {
            try {
                final ValidationConfigType validationConfigType = JaxbOpenejb.unmarshal(ValidationConfigType.class, ((Source) value).get(), false);
                module.setValidationConfig(validationConfigType);
            } catch (Exception e) {
                logger.warning("can't read validation.xml to construct a validation factory, it will be ignored");
            }
        }
View Full Code Here

Examples of org.apache.openejb.jee.bval.ValidationConfigType

        }

        final Source value = getSource(module.getAltDDs().get("validation.xml"));
        if (value != null) {
            try {
                ValidationConfigType validationConfigType = JaxbOpenejb.unmarshal(ValidationConfigType.class, ((Source) value).get(), false);
                module.setValidationConfig(validationConfigType);
            } catch (Exception e) {
                logger.warning("can't read validation.xml to construct a validation factory, it will be ignored");
            }
        }
View Full Code Here

Examples of org.apache.openejb.jee.bval.ValidationConfigType

        return reference;
    }

    @Override
    public ValidationConfigType createEmpty() {
        return new ValidationConfigType();
    }
View Full Code Here

Examples of org.apache.openejb.jee.bval.ValidationConfigType

        }

        final Source value = getSource(module.getAltDDs().get("validation.xml"));
        if (value != null) {
            try {
                ValidationConfigType validationConfigType = JaxbOpenejb.unmarshal(ValidationConfigType.class, ((Source) value).get(), false);
                module.setValidationConfig(validationConfigType);
            } catch (Exception e) {
                logger.warning("can't read validation.xml to construct a validation factory, it will be ignored");
            }
        }
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

   * Tries to check whether a validation.xml file exists and parses it using JAXB.
   *
   * @return The parameters parsed out of <i>validation.xml</i> wrapped in an instance of <code>ConfigurationImpl.ValidationBootstrapParameters</code>.
   */
  public ValidationBootstrapParameters parseValidationXml() {
    ValidationConfigType config = getValidationConfig();
    ValidationBootstrapParameters xmlParameters = new ValidationBootstrapParameters();
    if ( config != null ) {
      // collect the paramters from the xml file
      setProviderClassFromXml( config, xmlParameters );
      setMessageInterpolatorFromXml( config, xmlParameters );
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

      return null;
    }

    log.info( "{} found.", VALIDATION_XML_FILE );

    ValidationConfigType validationConfig;
    Schema schema = getValidationConfigurationSchema();
    try {
      JAXBContext jc = JAXBContext.newInstance( ValidationConfigType.class );
      Unmarshaller unmarshaller = jc.createUnmarshaller();
      unmarshaller.setSchema( schema );
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

   * Tries to check whether a validation.xml file exists and parses it using JAXB.
   *
   * @return The parameters parsed out of <i>validation.xml</i> wrapped in an instance of <code>ConfigurationImpl.ValidationBootstrapParameters</code>.
   */
  public ValidationBootstrapParameters parseValidationXml() {
    ValidationConfigType config = getValidationConfig();
    ValidationBootstrapParameters xmlParameters = new ValidationBootstrapParameters();
    if ( config != null ) {
      // collect the paramters from the xml file
      setProviderClassFromXml( config, xmlParameters );
      setMessageInterpolatorFromXml( config, xmlParameters );
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

      return null;
    }

    log.info( "{} found.", VALIDATION_XML_FILE );

    ValidationConfigType validationConfig = null;
    Schema schema = getValidationConfigurationSchema();
    try {
      JAXBContext jc = JAXBContext.newInstance( ValidationConfigType.class );
      Unmarshaller unmarshaller = jc.createUnmarshaller();
      unmarshaller.setSchema( schema );
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

   * Tries to check whether a validation.xml file exists and parses it using JAXB.
   *
   * @return The parameters parsed out of <i>validation.xml</i> wrapped in an instance of <code>ConfigurationImpl.ValidationBootstrapParameters</code>.
   */
  public ValidationBootstrapParameters parseValidationXml() {
    ValidationConfigType config = getValidationConfig();
    ValidationBootstrapParameters xmlParameters = new ValidationBootstrapParameters();
    if ( config != null ) {
      // collect the paramters from the xml file
      setProviderClassFromXml( config, xmlParameters );
      setMessageInterpolatorFromXml( config, xmlParameters );
View Full Code Here

Examples of org.hibernate.validation.xml.ValidationConfigType

      return null;
    }

    log.info( "{} found.", VALIDATION_XML_FILE );

    ValidationConfigType validationConfig;
    Schema schema = getValidationConfigurationSchema();
    try {
      JAXBContext jc = JAXBContext.newInstance( ValidationConfigType.class );
      Unmarshaller unmarshaller = jc.createUnmarshaller();
      unmarshaller.setSchema( schema );
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.