<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">&gt; but we would need then probably another object in BootstrapConfiguration wrapping the</span></div><div>&gt; e<span style="font-family:arial,sans-serif;font-size:13px">xecutable-validation config. I am not sure this is worth it.</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br>
</span></div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">We could also do</span></div>
<div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div>    &lt;executable-validation enabled=&quot;true|false&quot;&gt;</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">        &lt;executable-type&gt;GETTER_METHODS&lt;/</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">executable-type&gt;</span><div>
<span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">        &lt;executable-type&gt;CONSTRUCTORS&lt;/</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">executable-type&gt;</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">    &lt;/executable-validation&gt;</span><br></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div style><font color="#500050" face="arial, sans-serif">I&#39;d slightly prefer an explicit list element for the executable types. I think this reads better, should we add another sub-element to &lt;executable-validation&gt; one day. But I could also live with the simpler form I guess.</font></div>
<div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/3/13 Hardy Ferentschik <span dir="ltr">&lt;<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 13 Jan 2013, at 11:54 AM, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>&gt; wrote:<br>
<br>
&gt; What I like about approach #2 is that it bundles the configuration related to executable validation in one element.<br>
&gt;<br>
&gt; Maybe an attribute could be used for the flag:<br>
&gt;<br>
&gt;     &lt;executable-validation enabled=&quot;true|false&quot;&gt;<br>
&gt;         &lt;default-validated-executables&gt;<br>
&gt;             &lt;executable-type&gt;NONE&lt;/executable-type&gt;<br>
&gt;         &lt;/default-validated-executables&gt;<br>
&gt;     &lt;/executable-validation&gt;<br>
<br>
</div>the enabled flag seems need, but we would need then probably another object in BootstrapConfiguration wrapping the<br>
executable-validation config. I am not sure this is worth it.<br>
<div class="im"><br>
&gt; Generally I like &quot;positive&quot; flag names better than negated ones (i.e. &quot;enabled&quot; instead of &quot;disabled&quot;).<br>
<br>
</div>In this case I actually prefer isValidationExecutionDisabled(). That&#39;s the more relevant/interesting case.<br>
<div class="HOEnZb"><div class="h5"><br>
--Hardy<br>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">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>
</div></div></blockquote></div><br></div>