hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r415963 - in /jakarta/hivemind/branches/branch-1-1/library/src: descriptor/META-INF/hivemodule.xml test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
Date Wed, 21 Jun 2006 11:13:43 GMT
Author: jcarman
Date: Wed Jun 21 04:13:42 2006
New Revision: 415963

URL: http://svn.apache.org/viewvc?rev=415963&view=rev
Log:
HIVEMIND-177: Allow for customization of "parameter index" in StrategyFactory

Modified:
    jakarta/hivemind/branches/branch-1-1/library/src/descriptor/META-INF/hivemodule.xml
    jakarta/hivemind/branches/branch-1-1/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml

Modified: jakarta/hivemind/branches/branch-1-1/library/src/descriptor/META-INF/hivemodule.xml
URL: http://svn.apache.org/viewvc/jakarta/hivemind/branches/branch-1-1/library/src/descriptor/META-INF/hivemodule.xml?rev=415963&r1=415962&r2=415963&view=diff
==============================================================================
--- jakarta/hivemind/branches/branch-1-1/library/src/descriptor/META-INF/hivemodule.xml (original)
+++ jakarta/hivemind/branches/branch-1-1/library/src/descriptor/META-INF/hivemodule.xml Wed
Jun 21 04:13:42 2006
@@ -365,12 +365,13 @@
           A configuration utilizing the hivemind.lib.StrategyRegistry schema, which
           defines the classes and matching strategies.
         </attribute>
-        <attribute name="parameterIndex" required="false">
+        <attribute name="parameter-index" required="false">
           The index (zero-based) of the parameter to be used to determine which
           strategy to use.
         </attribute>
         <conversion class="strategy.StrategyParameter">
           <map attribute="configuration-id" property="contributions"/>
+          <map attribute="parameter-index" property="parameterIndex" />
         </conversion>
       </element>
     </parameters-schema>

Modified: jakarta/hivemind/branches/branch-1-1/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
URL: http://svn.apache.org/viewvc/jakarta/hivemind/branches/branch-1-1/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml?rev=415963&r1=415962&r2=415963&view=diff
==============================================================================
--- jakarta/hivemind/branches/branch-1-1/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
(original)
+++ jakarta/hivemind/branches/branch-1-1/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
Wed Jun 21 04:13:42 2006
@@ -28,7 +28,7 @@
   
   <service-point id="LoggingStrategy" interface="LoggingStrategy">
     <invoke-factory service-id="hivemind.lib.StrategyFactory">
-      <construct configuration-id="LoggingStrategies" parameterIndex="1"/>
+      <construct configuration-id="LoggingStrategies" parameter-index="1"/>
     </invoke-factory>
   </service-point>
 </module>



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message