<p><br>
Am 18.07.2012 11:32 schrieb &quot;Hardy Ferentschik&quot; &lt;<a href="mailto:hardy@hibernate.org">hardy@hibernate.org</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt; On Jul 17, 2012, at 10:42 PM, Gunnar Morling wrote:<br>
&gt;<br>
&gt; &gt;&gt; Initially I thought about using DefaultConfiguration as an alternative name, but as Emmanuel pointed out in an earlier email it clashes to a certain degree with the programmatic Configuration interface.<br>

&gt; &gt;<br>
&gt; &gt; But does it really clash? IMO Configuration provides a unified way for<br>
&gt; &gt; accessing the effective configuration. It allows to change the<br>
&gt; &gt; configuration in a programmatic way but it could also provide a handle<br>
&gt; &gt; to the default configuration from validation.xml via<br>
&gt; &gt; getDefaultConfiguration().<br>
&gt; &gt;<br>
&gt; &gt; I see there is a clash with getDefaultMessageInterpolator() etc,<br>
&gt; &gt; though (which returns the default implementations as demanded by the<br>
&gt; &gt; spec.), so maybe the method returning the user provided default<br>
&gt; &gt; configuration should be named getExternalDefaultConfiguration(),<br>
&gt; &gt; getBootstrapDefaultConfiguration() or similar.<br>
&gt;<br>
&gt; That&#39;s exactly the clash I am talking about. If we call it _DefaultConfiguration_ and just call the getter<br>
&gt; Configuration#getDefaultConfiguration we have for example Configuration#getDefaultMessageInterpolator, but<br>
&gt; also Configuration#getDefaultConfiguration()#getMessageInterpolatorClassName. IMO that can be misleading.</p>
<p>I see, yes that&#39;s definitely sub-optimal.</p>
<p>&gt;<br>
&gt; One way to avoid this would be to call the accessor #getExternalDefaultConfiguration() or #getBootstrapDefaultConfiguration()<br>
&gt; as you suggest, but then I rather call it BootstrapConfiguration to begin with.<br>
&gt;</p>
<p>Works both for me.</p>
<p>&gt; I chose XMLConfiguration, because I think it is ok to limit this method to validation.xml. If we really want to keep<br>
&gt; &quot;doors open&quot; I could imagine renaming to BootstrapConfiguration.</p>
<p>+1 Personally, for me the “naming things by semantics“ argument is even more important than leaving doors open. We would just get the latter for free by following the former.</p>
<p>&gt;<br>
&gt; What do others think?</p>
<p>Yepp, please speak up guys :) Let&#39;s bring this to an end.</p>
<p>&gt;<br>
&gt; --Hardy</p>
<p>--Gunnar<br></p>
<p>&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">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
</p>