<div dir="ltr">&gt; <span style="font-family:arial,sans-serif;font-size:13px">I&#39;d like BootstrapConfiguration to mimic the name we use in the XSD.</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Does that change your proposal?</span><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Maybe isExecutableValidationEnabled() then? I guess this would match &lt;</span><span style="font-family:arial,sans-serif;font-size:13px">executable-validation enabled=&quot;true|false&quot;&gt; quite closely.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">&gt; </span><span style="font-family:arial,sans-serif;font-size:13px">How would that be designed in BootstrapConfiguration?</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Two methods, isExecutableValidationEnabled() and getDefaultValidatedExecutableTypes()? It would be in the responsibility of the caller to make use of the latter only if the former returned true.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="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 Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;d like BootstrapConfiguration to mimic the name we use in the XSD.<br>
Does that change your proposal?<br>
<br>
I thought about using choice but it forces people to comment out their<br>
default validated executable section.<br>
<br>
That being said, I like your proposal for<br>
&lt;executable-validation enabled=&quot;false&quot;/&gt; with a default to true.<br>
<br>
How would that be designed in BootstrapConfiguration?<br>
<span class="HOEnZb"><font color="#888888"><br>
Emmanuel<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed 2013-03-13 11:54, Gunnar Morling wrote:<br>
&gt; What I like about approach #2 is that it bundles the configuration related<br>
&gt; 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>
&gt;<br>
&gt; Generally I like &quot;positive&quot; flag names better than negated ones (i.e.<br>
&gt; &quot;enabled&quot; instead of &quot;disabled&quot;).<br>
&gt;<br>
&gt; If you want to stick to two elements instead of an attribute, a xs:choice<br>
&gt; could be used to express that only one of the elements may be present in a<br>
&gt; given instance document.<br>
&gt;<br>
&gt; &gt; Would isValidationExecutionDisabled() not a better name?<br>
&gt;<br>
&gt; Or isValidationOnExecutionEnabled()?<br>
&gt;<br>
&gt; --Gunnar<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2013/3/13 Hardy Ferentschik &lt;<a href="mailto:hardy@hibernate.org">hardy@hibernate.org</a>&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; On 13 Jan 2013, at 8:37 AM, Emmanuel Bernard &lt;<a href="mailto:emmanuel@hibernate.org">emmanuel@hibernate.org</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; <a href="https://gist.github.com/emmanuelbernard/2191bad0c7d8742a8eea" target="_blank">https://gist.github.com/emmanuelbernard/2191bad0c7d8742a8eea</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Approach #1 has my preference I believe.<br>
&gt; &gt;<br>
&gt; &gt; +1 A single flag works.<br>
&gt; &gt;<br>
&gt; &gt; &gt; Likewise BootstrapConfiguration would get a Boolean<br>
&gt; &gt; &gt; getDisableValidationExecution() method that is ignored by Bean<br>
&gt; &gt; &gt; Validation engines proper.<br>
&gt; &gt;<br>
&gt; &gt; Would isValidationExecutionDisabled() not a better name?<br>
&gt; &gt;<br>
&gt; &gt; --Hardy<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; beanvalidation-dev mailing list<br>
&gt; &gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
&gt; &gt;<br>
<br>
&gt; _______________________________________________<br>
&gt; beanvalidation-dev mailing list<br>
&gt; <a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
<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>