You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by jc...@apache.org on 2006/06/14 17:28:23 UTC
svn commit: r414290 - in /jakarta/hivemind/trunk/library/src: site/xdoc/
test/org/apache/hivemind/lib/strategy/
Author: jcarman
Date: Wed Jun 14 08:28:23 2006
New Revision: 414290
URL: http://svn.apache.org/viewvc?rev=414290&view=rev
Log:
HIVEMIND-177: Allow for customization of "parameter index" in StrategyFactory (updated copyright)
Modified:
jakarta/hivemind/trunk/library/src/site/xdoc/StrategyFactory.xml
jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DateLoggingStrategy.java
jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DefaultLoggingStrategy.java
jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/LoggingStrategy.java
jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
Modified: jakarta/hivemind/trunk/library/src/site/xdoc/StrategyFactory.xml
URL: http://svn.apache.org/viewvc/jakarta/hivemind/trunk/library/src/site/xdoc/StrategyFactory.xml?rev=414290&r1=414289&r2=414290&view=diff
==============================================================================
--- jakarta/hivemind/trunk/library/src/site/xdoc/StrategyFactory.xml (original)
+++ jakarta/hivemind/trunk/library/src/site/xdoc/StrategyFactory.xml Wed Jun 14 08:28:23 2006
@@ -24,8 +24,9 @@
based on a service interface and a number of <em>strategies</em> implementing that interface.</p>
<p>
- The class of the first parameter of each method is used to select the correct strategy instance to
- delegate the method invocation to.
+ By default, the class of the first parameter of each method is used to select the correct strategy instance to
+ delegate the method invocation to. This can be overridden by using the "parameterIndex"
+ (the first parameter index is 0) attribute on the <construct> element.
</p>
<p>
Modified: jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DateLoggingStrategy.java
URL: http://svn.apache.org/viewvc/jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DateLoggingStrategy.java?rev=414290&r1=414289&r2=414290&view=diff
==============================================================================
--- jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DateLoggingStrategy.java (original)
+++ jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DateLoggingStrategy.java Wed Jun 14 08:28:23 2006
@@ -1,3 +1,17 @@
+// Copyright 2006 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
package org.apache.hivemind.lib.strategy;
import java.text.MessageFormat;
Modified: jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DefaultLoggingStrategy.java
URL: http://svn.apache.org/viewvc/jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DefaultLoggingStrategy.java?rev=414290&r1=414289&r2=414290&view=diff
==============================================================================
--- jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DefaultLoggingStrategy.java (original)
+++ jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/DefaultLoggingStrategy.java Wed Jun 14 08:28:23 2006
@@ -1,3 +1,17 @@
+// Copyright 2006 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
package org.apache.hivemind.lib.strategy;
import org.apache.commons.logging.Log;
Modified: jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/LoggingStrategy.java
URL: http://svn.apache.org/viewvc/jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/LoggingStrategy.java?rev=414290&r1=414289&r2=414290&view=diff
==============================================================================
--- jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/LoggingStrategy.java (original)
+++ jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/LoggingStrategy.java Wed Jun 14 08:28:23 2006
@@ -1,3 +1,17 @@
+// Copyright 2006 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
package org.apache.hivemind.lib.strategy;
import org.apache.commons.logging.Log;
Modified: jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml
URL: http://svn.apache.org/viewvc/jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml?rev=414290&r1=414289&r2=414290&view=diff
==============================================================================
--- jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml (original)
+++ jakarta/hivemind/trunk/library/src/test/org/apache/hivemind/lib/strategy/ParameterIndexTest.xml Wed Jun 14 08:28:23 2006
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Copyright 2004, 2005 The Apache Software Foundation
+ Copyright 2006 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org