You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by bu...@apache.org on 2015/08/17 04:52:53 UTC

svn commit: r962064 - in /websites/staging/deltaspike/trunk/content: ./ documentation/spi.html

Author: buildbot
Date: Mon Aug 17 02:52:53 2015
New Revision: 962064

Log:
Staging update by buildbot for deltaspike

Modified:
    websites/staging/deltaspike/trunk/content/   (props changed)
    websites/staging/deltaspike/trunk/content/documentation/spi.html

Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Aug 17 02:52:53 2015
@@ -1 +1 @@
-1696186
+1696189

Modified: websites/staging/deltaspike/trunk/content/documentation/spi.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation/spi.html (original)
+++ websites/staging/deltaspike/trunk/content/documentation/spi.html Mon Aug 17 02:52:53 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&#8217;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&#8217;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>