1 Reply Latest reply on Mar 19, 2013 2:27 AM by Karel Piwko

    How to configure multiple containers differently via one extension?

    Stefan Miklosovic Novice

      Hi,

       

      I would like to get some ideas how to make some extension which reflects various setups according of which container it extends. Lets say I have two containers A and B and I have the extension C which does something like this:

       

      <extension qualifier="C">

           <configuration>

                <container qualifier="A">

                     <property name="xyz">123</property>

                </container>

                <container qualifier="B">

                     <property name="xyz">456</property>

                </container>

           </configuration>

      </extension>

       

      or something like this

       

      <extension qualifier="C">

           <configuration qualifier="A">

                     <property name="xyz">123</property>

           <configuration>

           <configuration qualifier="B">

                     <property name="xyz">456</property>

           <configuration>

      </extension>

       

      I need it since I have some extension which does some useful stuff for a container, but I do not know how to make difference between containers this extension extends.

       

      I *know* that right now you can just put some configuration in the property elements right in the extension tag, but would it make sense to do it my way? Right now "one extension rules all container", losing ability to extend some container differently from another one.

       

       

      Any ideas from the implementation point of view?