deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r962064 - in /websites/staging/deltaspike/trunk/content: ./ documentation/spi.html
Date Mon, 17 Aug 2015 02:52:53 GMT
Author: buildbot
Date: Mon Aug 17 02:52:53 2015
New Revision: 962064

Staging update by buildbot for deltaspike

    websites/staging/deltaspike/trunk/content/   (props changed)

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

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 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/</code> to disable classes at runtime.
 Here&#8217;s an
+example configuration</p>
+<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</code></pre>
+<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>

View raw message