You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bval.apache.org by Umesh Awasthi <um...@gmail.com> on 2013/10/15 20:48:42 UTC

buildDefaultValidatorFactory and Validation.byDefaultProvider()

Hi All,

Sorry for asking one question after another, i am wondering what difference
it can make if i use

 Validation.buildDefaultValidatorFactory()

and Validation.byDefaultProvider().configure()..buildValidatorFactory()

Thanks
Umesh



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: buildDefaultValidatorFactory and Validation.byDefaultProvider()

Posted by Umesh Awasthi <um...@gmail.com>.
Thanks, that clears my doubt.


On Wed, Oct 16, 2013 at 12:22 AM, Matt Benson <gu...@gmail.com> wrote:

> These should be equivalent. Calling #configure() against the default
> ValidationProvider just gives you the opportunity to alter a configuration
> before using it to produce a ValidatorFactory.
>
> Matt
>
>
> On Tue, Oct 15, 2013 at 1:48 PM, Umesh Awasthi <um...@gmail.com>wrote:
>
>> Hi All,
>>
>> Sorry for asking one question after another, i am wondering what
>> difference it can make if i use
>>
>>  Validation.buildDefaultValidatorFactory()
>>
>> and Validation.byDefaultProvider().configure()..buildValidatorFactory()
>>
>> Thanks
>>
>> Umesh
>>
>>
>>
>> --
>> With Regards
>> Umesh Awasthi
>> http://www.travellingrants.com/
>>
>>
>>
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: buildDefaultValidatorFactory and Validation.byDefaultProvider()

Posted by Matt Benson <gu...@gmail.com>.
These should be equivalent. Calling #configure() against the default
ValidationProvider just gives you the opportunity to alter a configuration
before using it to produce a ValidatorFactory.

Matt


On Tue, Oct 15, 2013 at 1:48 PM, Umesh Awasthi <um...@gmail.com>wrote:

> Hi All,
>
> Sorry for asking one question after another, i am wondering what
> difference it can make if i use
>
>  Validation.buildDefaultValidatorFactory()
>
> and Validation.byDefaultProvider().configure()..buildValidatorFactory()
>
> Thanks
> Umesh
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>
>
>