@Override public MinijaxValidatorContext addValueExtractor(final ValueExtractor<?> extractor) { return this; }
@Override public MinijaxValidationProvider addValueExtractor(final ValueExtractor<?> extractor) { throw new UnsupportedOperationException(); }
@Override public Set<ValueExtractor<?>> getValueExtractors() { throw new UnsupportedOperationException("GWT does not support getValueExtractors()."); }
@Override public ValidatorContext addValueExtractor(final ValueExtractor<?> extractor) { throw new UnsupportedOperationException("GWT Validation does not support addValueExtractor()."); }
@Override public AbstractBaseGwtConfiguration addValueExtractor(final ValueExtractor<?> extractor) { throw new UnsupportedOperationException( "GWT does not support addValueExtractor(ValueExtractor)."); }
/** * Adds a value extractor. Has priority over any extractor for the same type and type parameter * detected through the service loader or given in the XML configuration. * * @param extractor value extractor implementation * @return {@code this} following the chaining method pattern. * @throws ValueExtractorDeclarationException if more than one extractor for the same type and * type parameter is added * @since 2.0 */ T addValueExtractor(ValueExtractor<?> extractor);
/** * Returns a set of value extractors. * <p> * The extractors are retrieved from the following sources in decreasing order: * </p> * <ul> * <li>extractors passed programmatically to {@link Configuration}</li> * <li>extractors defined in {@code META-INF/validation.xml} provided that * {@code ignoredXmlConfiguration} is {@code false}</li> * <li>extractors loaded through the Java service loader</li> * </ul> * An extractor for a given type and type parameter passed in programmatically takes precedence * over any extractor for the same type and type parameter defined in * {@code META-INF/validation.xml} or loaded through the service loader. Extractors defined in * {@code META-INF/validation.xml} take precedence over any extractor for the same type and type * parameter loaded through the service loader. * <p> * Extractors defined in {@code META-INF/validation.xml} or loaded through the service loader are * instantiated using their no-arg constructor. * </p> * * @return set of value extractors; may be empty but never {@code null} * * @since 2.0 */ Set<ValueExtractor<?>> getValueExtractors();