[bv-dev] Should we expose group conversions via meta-data API?

Gunnar Morling gunnar at hibernate.org
Wed Jan 30 16:39:16 EST 2013


Hi all,

I think one natural way for representing group conversions in the metadata
API would be to add a method

    Map<Class<?>, Class<?>> getGroupConversions()

to ParameterDescriptor, ReturnValueDescriptor and PropertyDescriptor
(that's also how conversions are represented internally in the RI).

Any thoughts on that, or other suggestions? If no one objects, I'd move
forward and add the method to the spec and API.

--Gunnar



2013/1/18 Gunnar Morling <gunnar at hibernate.org>

> > We should.
>
> Ok, I've created https://hibernate.onjira.com/browse/BVAL-361 for this.
>
> --Gunnar
>
>
> 2013/1/18 Emmanuel Bernard <emmanuel at hibernate.org>
>
>> We should.
>>
>> The reason the metadata API is complete is so that non Java system can
>> propagate the constraints and logic of validation. Client side presentation
>> framework was the canonical example.
>>
>> On 17 janv. 2013, at 21:44, Gunnar Morling <gunnar at hibernate.org> wrote:
>>
>> > Hi all,
>> >
>> > As the title says: should we provide a way to access configured group
>> conversions via the meta-data API?
>> >
>> > I'm undecided, I don't really see where this would be useful, OTOH
>> we've exposed all BV-related configurations via the meta-data API so far,
>> so I guess we probably should for the sake of completeness.
>> >
>> > Thoughts?
>> >
>> > --Gunnar
>> >
>> > _______________________________________________
>> > beanvalidation-dev mailing list
>> > beanvalidation-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>>
>> _______________________________________________
>> beanvalidation-dev mailing list
>> beanvalidation-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20130130/5c16786e/attachment.html 


More information about the beanvalidation-dev mailing list