You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/01/03 16:07:30 UTC

svn commit: r608517 - /jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java

Author: sebb
Date: Thu Jan  3 07:07:29 2008
New Revision: 608517

URL: http://svn.apache.org/viewvc?rev=608517&view=rev
Log:
Add dumy versions of new Function methods

Modified:
    jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java

Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java?rev=608517&r1=608516&r2=608517&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java Thu Jan  3 07:07:29 2008
@@ -39,7 +39,6 @@
 /**
  * CompoundFunction.
  * 
- * @author mstover
  */
 public class CompoundVariable implements Function {
 	private static final Logger log = LoggingManager.getLoggerForClass();
@@ -72,6 +71,7 @@
 					new Class[] { Function.class }, true, contain, notContain);
 			Iterator iter = classes.iterator();
 			while (iter.hasNext()) {
+				// TODO skip class init - e.g. update findClassesThatExtend() to return classes instead of strings
 				Function tempFunc = (Function) Class.forName((String) iter.next()).newInstance();
 				String referenceKey = tempFunc.getReferenceKey();
                 functions.put(referenceKey, tempFunc.getClass());
@@ -180,14 +180,6 @@
 		}
 	}
 
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.jmeter.functions.Function#setParameters(Collection)
-	 */
-	public void setParameters(Collection parameters) throws InvalidVariableException {
-	}
-
 	static Object getNamedFunction(String functionName) throws InvalidVariableException {
 		if (functions.containsKey(functionName)) {
 			try {
@@ -204,10 +196,23 @@
 		return hasFunction;
 	}
 
+	// Dummy methods needed by Function interface
+	
 	/**
 	 * @see Function#getReferenceKey()
 	 */
 	public String getReferenceKey() {
 		return ""; // $NON-NLS-1$
+	}
+
+	public void setParameters(Collection parameters) throws InvalidVariableException {
+	}
+
+	public int getMaxArgCount() {
+		return 0;
+	}
+
+	public int getMinArgCount() {
+		return 0;
 	}
 }



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