From do-not-reply at jboss.org Mon Jun 14 03:35:23 2010 Content-Type: multipart/mixed; boundary="===============5898570738728874206==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r2562 - jcr/trunk/docs/reference/en/src/main/docbook/en-US/modules/kernel. Date: Mon, 14 Jun 2010 03:35:22 -0400 Message-ID: <201006140735.o5E7ZMwl024128@svn01.web.mwc.hst.phx2.redhat.com> --===============5898570738728874206== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: nfilotto Date: 2010-06-14 03:35:22 -0400 (Mon, 14 Jun 2010) New Revision: 2562 Modified: jcr/trunk/docs/reference/en/src/main/docbook/en-US/modules/kernel/config= uration.xml Log: EXOJCR-784: config fixed Modified: jcr/trunk/docs/reference/en/src/main/docbook/en-US/modules/kernel= /configuration.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- jcr/trunk/docs/reference/en/src/main/docbook/en-US/modules/kernel/confi= guration.xml 2010-06-14 07:31:54 UTC (rev 2561) +++ jcr/trunk/docs/reference/en/src/main/docbook/en-US/modules/kernel/confi= guration.xml 2010-06-14 07:35:22 UTC (rev 2562) @@ -1151,21 +1151,44 @@ <type>Component</type> </component> = -<component profile=3D"foo"> +<component profiles=3D"foo"> <key>Component</key> <type>FooComponent</type> </component> =
+ Component plugin element + + 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: + + <external-component-plugins> + <target-component>Component</target-component> + <component-plugin profiles=3D"foo"> + <name>foo</name> + <set-method>addPlugin</set-method> + <type>type</type> + <init-params> + <value-param> + <name>param</name> + <value>empty</value> + </value-param> + </init-params> + </component-plugin> +</external-component-plugins> +
+ +
Import element = The import element imports a referenced configuration file when activated: = <import>empty</import> -<import profile=3D"foo">foo</import> -<import profile=3D"bar">bar</import> +<import profiles=3D"foo">foo</import> +<import profiles=3D"bar">bar</import>
=
@@ -1182,11 +1205,11 @@ <name>param</name> <value>empty</value> </value-param> - <value-param profile=3D"foo"> + <value-param profiles=3D"foo"> <name>param</name> <value>foo</value> </value-param> - <value-param profile=3D"bar"> + <value-param profiles=3D"bar"> <name>param</name> <value>bar</value> </value-param> @@ -1204,8 +1227,8 @@ <field name=3D"role"> <collection type=3D"java.util.ArrayList"> <value><string>manager</string></value> - <value profile=3D"foo"><string>foo_manager</string>= ;</value> - <value profile=3D"foo,bar"><string>foo_bar_manager</s= tring></value> + <value profiles=3D"foo"><string>foo_manager</string&g= t;</value> + <value profiles=3D"foo,bar"><string>foo_bar_manager</= string></value> </collection> </field> </object> @@ -1225,12 +1248,12 @@ <value><string>manager</string></value> </collection> </field> - <field name=3D"role" profile=3D"foo,bar"> + <field name=3D"role" profiles=3D"foo,bar"> <collection type=3D"java.util.ArrayList"> <value><string>foo_bar_manager</string></valu= e> </collection> </field> - <field name=3D"role" profile=3D"foo"> + <field name=3D"role" profiles=3D"foo"> <collection type=3D"java.util.ArrayList"> <value><string>foo_manager</string></value> </collection> --===============5898570738728874206==--