You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by jo...@apache.org on 2015/08/17 04:52:27 UTC
svn commit: r1696189 - /deltaspike/site/trunk/content/documentation/spi.html
Author: johndament
Date: Mon Aug 17 02:52:27 2015
New Revision: 1696189
URL: http://svn.apache.org/r1696189
Log:
Site checkin for project Apache DeltaSpike Documentation
Modified:
deltaspike/site/trunk/content/documentation/spi.html
Modified: deltaspike/site/trunk/content/documentation/spi.html
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/spi.html?rev=1696189&r1=1696188&r2=1696189&view=diff
==============================================================================
--- deltaspike/site/trunk/content/documentation/spi.html (original)
+++ deltaspike/site/trunk/content/documentation/spi.html Mon Aug 17 02:52:27 2015
@@ -336,6 +336,21 @@ as soon as everything is initialized the
<div class="paragraph">
<p>A class-deactivator will be resolved from the environment via the default resolvers or via a custom resolver which allows to use any type of configuration-format. (see <code>org.apache.deltaspike.core.api.config.ConfigResolver</code>). The key is the fully qualified name of the interface (<code>org.apache.deltaspike.core.spi.activation.ClassDeactivator</code>).</p>
</div>
+<div class="paragraph">
+<p>Starting with (TBD v1.5.1), Apache DeltaSpike ships a default Class Deactivator. It is designed mostly for testing purposes, but is meant to reduce code overhead
+and allow configuration to drive classes to deactivate. It is built upon the <code>ConfigSource</code> paradigm, which allows for configuration based keys to deactivate your
+classes. If you’re not using any other ConfigSource, you can simply add entries to <code>META-INF/apache-deltaspike.properties</code> to disable classes at runtime. Here’s an
+example configuration</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code>org.apache.deltaspike.core.spi.activation.ClassDeactivator=org.apache.deltaspike.core.impl.activation.DefaultClassDeactivator
+deactivate.org.apache.deltaspike.test.core.impl.activation.DeactivatedClass=true</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>By listing the class in the properties file and setting the value to <code>true</code>, the class will be deactivated. This is valid for anything where <code>Boolean.valueOf</code> returns true.</p>
+</div>
</div>
</div>
</div>