You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by rm...@apache.org on 2017/04/07 07:22:43 UTC

svn commit: r1790513 [4/10] - in /openwebbeans/cms-site/trunk/content/meecrowave: ./ meecrowave-core/ meecrowave-gradle/ meecrowave-jolokia/ meecrowave-jpa/ meecrowave-jta/ meecrowave-maven/ meecrowave-oauth2/ testing/

Modified: openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html?rev=1790513&r1=1790512&r2=1790513&view=diff
==============================================================================
--- openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html (original)
+++ openwebbeans/cms-site/trunk/content/meecrowave/meecrowave-core/configuration.html Fri Apr  7 07:22:42 2017
@@ -139,6 +139,10 @@
 <td class="tableblock halign-left valign-top"><p class="tableblock">Should the java9 workarounds be skipped, default to false if on java 9</p></td>
 </tr>
 <tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">jaxrsAutoActivateBeanValidation</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Should bean validation be activated on JAX-RS endpoint if present in the classpath.</p></td>
+</tr>
+<tr>
 <td class="tableblock halign-left valign-top"><p class="tableblock">jaxrsDefaultProviders</p></td>
 <td class="tableblock halign-left valign-top"><p class="tableblock">If jaxrsProviderSetup is true the list of default providers to load (or defaulting to johnson jsonb and jsonp ones)</p></td>
 </tr>
@@ -374,12 +378,13 @@ and make it active using <code>addCustom
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-java" data-lang="java">new Meecrowave(new Builder()
-        .randomHttpPort()
-        .setTomcatScanning(false)
-        .setTomcatAutoSetup(false)
-        .setRealm(new JAASRealm())
-        .user("admin", "secret"))
+<pre class="highlightjs highlight"><code class="language-java" data-lang="java">new Meecrowave(new Builder() {{
+        randomHttpPort();
+        setTomcatScanning(false);
+        setTomcatAutoSetup(false);
+        setRealm(new JAASRealm());
+        user("admin", "secret");
+     }})
     .bake()
     .await();</code></pre>
 </div>
@@ -517,6 +522,20 @@ this code being executed before the cont
 </div>
 </div>
 </div>
+<div class="sect1">
+<h2 id="_programmatic_customization">Programmatic customization</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><code>org.apache.meecrowave.Meecrowave$ConfigurationCustomizer</code> can be used to customize the configuration
+programmatically before startup. It will take the <code>Builder</code> as parameter and you can change it at that moment.</p>
+</div>
+<div class="paragraph">
+<p><code>org.apache.meecrowave.Meecrowave$InstanceCustomizer</code> can be used to customize the configuration
+programmatically before startup. It will take the <code>Tomcat</code> as parameter and you can change it at that moment. This
+is very useful to automatically add valves and things like that.</p>
+</div>
+</div>
+</div>
             </section><!--//doc-section-->