short addition:<div><br></div><div>@constructor (validation):</div><div>for sure the performance issue only appeared as soon as we started to use it for classes which get instantiated quite often.</div><div><br></div><div>

regards,</div><div>gerhard</div><div><br><a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br><br>Your JSF/JEE powerhouse -<br>JEE Consulting, Development and<br>Courses in English and German<br><br>Professional Support for Apache MyFaces<br>


<br><br><div class="gmail_quote">2011/11/30 Gerhard Petracek <span dir="ltr">&lt;<a href="mailto:gerhard.petracek@gmail.com">gerhard.petracek@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hi gunnar,<div><br></div><div>@constructor:</div><div>we tried something similar in a project. it worked but it introduced a big performance issue and we had to remove it again.</div><div><br></div><div>regards,</div><div>


gerhard<br clear="all"><br><a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br><br>Your JSF/JEE powerhouse -<br>JEE Consulting, Development and<br>Courses in English and German<br><br>Professional Support for Apache MyFaces<div>

<div></div><div class="h5"><br>

<br><br><br><div class="gmail_quote">2011/11/30 Gunnar Morling <span dir="ltr">&lt;<a href="mailto:gunnar.morling@googlemail.com" target="_blank">gunnar.morling@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi experts,<br>
<br>
Emmanuel asked me to take the lead on the method validation feature,<br>
so be prepared for related questions, API proposals and requests for<br>
feedback via the mailing list :)<br>
<br>
The first issue I&#39;d like to discuss is the validation of constructor<br>
arguments. Is this something which we want to support at all? I don&#39;t<br>
think there are that many interception solutions which enable<br>
constructor interception at all (for instance CDI interceptors don&#39;t,<br>
AFAIK).<br>
<br>
So personally I&#39;d be fine with focussing on actual method validation<br>
in BV 1.1, waiting for user demand for constructor validation and<br>
adding it possibly in a later release. WDYT?<br>
<br>
If we decide to include constructor validation, should we support the<br>
validation of newly created objects (similar to return value<br>
validation), e.g. like that:<br>
<br>
public class Foo {<br>
<br>
  @Valid<br>
  public Foo() {<br>
<br>
  }<br>
<br>
}<br>
<br>
Here @Valid would trigger a validation of the newly instantiated Foo<br>
object (whether to use @Valid or another annotation still needs to be<br>
discussed). Any thoughts?<br>
<br>
--Gunnar<br>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org" target="_blank">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>