Skip to content

Commit

Permalink
HV-563 Extending javadocs for Configuration#addMapping to explain tha…
Browse files Browse the repository at this point in the history
…t a buffered input stream needs to be passed in order to make the configuration reusable
  • Loading branch information
hferentschik committed Mar 26, 2012
1 parent c682ee8 commit daffddf
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -135,6 +135,16 @@ public final ConfigurationImpl constraintValidatorFactory(ConstraintValidatorFac
return this;
}

/**
* {@inheritDoc}
*
* @param stream XML mapping stream.
* <p>
* <b>Note</b>: In order to reuse the {@code ConfigurationInstance} to build multiple
* validator factories a {@link java.io.BufferedInputStream} has to be provided.
* </p>
*/

public final HibernateValidatorConfiguration addMapping(InputStream stream) {

Contracts.assertNotNull( stream, MESSAGES.parameterMustNotBeNull( "stream" ) );
Expand Down

0 comments on commit daffddf

Please sign in to comment.