deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject svn commit: r1696189 - /deltaspike/site/trunk/content/documentation/spi.html
Date Mon, 17 Aug 2015 02:52:27 GMT
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&#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>



Mime
View raw message