[exo-jcr-commits] exo-jcr SVN: r2561 - jcr/branches/1.12.x/docs/reference/en/src/main/docbook/en-US/modules/kernel.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jun 14 03:31:54 EDT 2010


Author: nfilotto
Date: 2010-06-14 03:31:54 -0400 (Mon, 14 Jun 2010)
New Revision: 2561

Modified:
   jcr/branches/1.12.x/docs/reference/en/src/main/docbook/en-US/modules/kernel/configuration.xml
Log:
EXOJCR-784: config fixed

Modified: jcr/branches/1.12.x/docs/reference/en/src/main/docbook/en-US/modules/kernel/configuration.xml
===================================================================
--- jcr/branches/1.12.x/docs/reference/en/src/main/docbook/en-US/modules/kernel/configuration.xml	2010-06-14 06:52:48 UTC (rev 2560)
+++ jcr/branches/1.12.x/docs/reference/en/src/main/docbook/en-US/modules/kernel/configuration.xml	2010-06-14 07:31:54 UTC (rev 2561)
@@ -1151,21 +1151,44 @@
   <type>Component</type>
 </component>
 
-<component profile="foo">
+<component profiles="foo">
   <key>Component</key>
   <type>FooComponent</type>
 &lt;/component&gt;</programlisting>
         </section>
 
         <section>
+          <title>Component plugin element</title>
+
+          <para>The component-plugin element is used to dynamically extend the
+          configuration of a given component. Thanks to the profiles the
+          component-plugins could be enabled or disabled:</para>
+
+          <programlisting>&lt;external-component-plugins&gt;
+  &lt;target-component&gt;Component&lt;/target-component&gt;
+  &lt;component-plugin profiles="foo"&gt;
+    &lt;name&gt;foo&lt;/name&gt;
+    &lt;set-method&gt;addPlugin&lt;/set-method&gt;
+    &lt;type&gt;type&lt;/type&gt;
+    &lt;init-params&gt;
+      &lt;value-param&gt;
+        &lt;name&gt;param&lt;/name&gt;
+        &lt;value&gt;empty&lt;/value&gt;
+      &lt;/value-param&gt;
+    &lt;/init-params&gt;
+  &lt;/component-plugin&gt;
+&lt;/external-component-plugins&gt;</programlisting>
+        </section>
+
+        <section>
           <title>Import element</title>
 
           <para>The import element imports a referenced configuration file
           when activated:</para>
 
           <programlisting>&lt;import&gt;empty&lt;/import&gt;
-&lt;import profile="foo"&gt;foo&lt;/import&gt;
-&lt;import profile="bar"&gt;bar&lt;/import&gt;</programlisting>
+&lt;import profiles="foo"&gt;foo&lt;/import&gt;
+&lt;import profiles="bar"&gt;bar&lt;/import&gt;</programlisting>
         </section>
 
         <section>
@@ -1182,11 +1205,11 @@
       &lt;name&gt;param&lt;/name&gt;
       &lt;value&gt;empty&lt;/value&gt;
     &lt;/value-param&gt;
-    &lt;value-param profile="foo"&gt;
+    &lt;value-param profiles="foo"&gt;
       &lt;name&gt;param&lt;/name&gt;
       &lt;value&gt;foo&lt;/value&gt;
     &lt;/value-param&gt;
-    &lt;value-param profile="bar"&gt;
+    &lt;value-param profiles="bar"&gt;
       &lt;name&gt;param&lt;/name&gt;
       &lt;value&gt;bar&lt;/value&gt;
     &lt;/value-param&gt;
@@ -1204,8 +1227,8 @@
   &lt;field name="role"&gt;
     &lt;collection type="java.util.ArrayList"&gt;
       &lt;value&gt;&lt;string&gt;manager&lt;/string&gt;&lt;/value&gt;
-      &lt;value profile="foo"&gt;&lt;string&gt;foo_manager&lt;/string&gt;&lt;/value&gt;
-      &lt;value profile="foo,bar"&gt;&lt;string&gt;foo_bar_manager&lt;/string&gt;&lt;/value&gt;
+      &lt;value profiles="foo"&gt;&lt;string&gt;foo_manager&lt;/string&gt;&lt;/value&gt;
+      &lt;value profiles="foo,bar"&gt;&lt;string&gt;foo_bar_manager&lt;/string&gt;&lt;/value&gt;
     &lt;/collection&gt;
   &lt;/field&gt;
 &lt;/object&gt;</programlisting>
@@ -1225,12 +1248,12 @@
         &lt;value&gt;&lt;string&gt;manager&lt;/string&gt;&lt;/value&gt;
       &lt;/collection&gt;
     &lt;/field&gt;
-    &lt;field name="role" profile="foo,bar"&gt;
+    &lt;field name="role" profiles="foo,bar"&gt;
       &lt;collection type="java.util.ArrayList"&gt;
         &lt;value&gt;&lt;string&gt;foo_bar_manager&lt;/string&gt;&lt;/value&gt;
       &lt;/collection&gt;
     &lt;/field&gt;
-    &lt;field name="role" profile="foo"&gt;
+    &lt;field name="role" profiles="foo"&gt;
       &lt;collection type="java.util.ArrayList"&gt;
         &lt;value&gt;&lt;string&gt;foo_manager&lt;/string&gt;&lt;/value&gt;
       &lt;/collection&gt;



More information about the exo-jcr-commits mailing list