This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Support for method validation

Description

As proposed in BV 1.0 Appendix C, the notion of method validation shall be established.

Environment

None

is followed up by

Activity

Show:

Emmanuel Bernard September 11, 2012 at 10:35 AM

It's not different than method validation. It is already supported via constructor specific validation methods. Of course the interception mechanism is left to the interception technology.

Matthew Adams September 10, 2012 at 11:20 PM

How is the expert group addressing the issue of constructor validation? Prolly best to leave as an extension, but it'd be nice to have the methods defined, just as they are for method validation. Apache BVal already offers support, and it works nicely along with AspectJ before-construction advice.

Emmanuel Bernard November 16, 2011 at 4:26 PM

yep I was thinking recommendation.

Gunnar Morling November 16, 2011 at 4:12 PM

I guess the validation interceptor should be executed as late as possible. I'm just wondering whether this is something which we should define in BV. Wouldn't BV not only provide the API/meta model for method validation, while it's up to integrators how/when to invoke it? In that case we might just add some sort of recommendation related to that aspect to the spec.

Emmanuel Bernard November 11, 2011 at 6:47 PM

We need to think about when a parameter validation interceptor ought to be executed in the interceptor stack

Before or after transaction, security? Some interceptors can change param values.

It's likely that transaction and security must go first. What about others?

Fixed

Details

Assignee

Reporter

Participants

Emmanuel Bernard
Gunnar Morling
Matthew Adams

Components

Priority

Created September 25, 2011 at 12:15 PM
Updated January 13, 2015 at 8:07 PM
Resolved March 13, 2012 at 12:26 PM