[jboss-svn-commits] JBL Code SVN: r5794 - in labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb: listeners util

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Aug 11 15:25:04 EDT 2006


Author: tfennelly
Date: 2006-08-11 15:25:01 -0400 (Fri, 11 Aug 2006)
New Revision: 5794

Modified:
   labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java
   labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/util/ListenerUtils.java
Log:
more mods

Modified: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java	2006-08-11 19:24:36 UTC (rev 5793)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/listeners/SQLTablePollerTest.java	2006-08-11 19:25:01 UTC (rev 5794)
@@ -22,7 +22,6 @@
 package org.jboss.soa.esb.listeners;
 
 import java.io.File;
-import java.sql.ResultSet;
 import java.sql.SQLException;
 
 import org.jboss.soa.esb.helpers.KeyValuePair;

Modified: labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/util/ListenerUtils.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/util/ListenerUtils.java	2006-08-11 19:24:36 UTC (rev 5793)
+++ labs/jbossesb/trunk/qa/junit/src/org/jboss/soa/esb/util/ListenerUtils.java	2006-08-11 19:25:01 UTC (rev 5794)
@@ -52,8 +52,7 @@
 	public static ListenersManagerExecThread startListeners(String paramName) throws Exception {
 		ListenersManagerExecThread manager;
 		
-		fixUpConfig(paramName);
-		manager = new ListenersManagerExecThread(new GpListener(paramName + CONFIG_TMP_EXT));
+		manager = new ListenersManagerExecThread(createGpListener(paramName));
 		
 		logger.info("Waiting on Listener Manager the start...");
 		manager.start();
@@ -69,9 +68,22 @@
 		
 		return manager;
 	}
+
+	/**
+	 * Create an instance of the {@link GpListener} and instruct it to read the specified configuration
+	 * from the ParamRepository.
+	 * <p/>
+	 * Note the root of the file repos is the root of the junit/src folder.
+	 * @param paramName Config classpath.
+	 * @return The {@link GpListener} instance.
+	 */
+	public static GpListener createGpListener(String paramName) throws Exception {		
+		fixUpConfig(paramName);
+		return new GpListener(paramName + CONFIG_TMP_EXT);
+	}
 	
 	/**
-	 * Just performs a token replacement on "@qa.build@" tokesn in the Listener config and
+	 * Just performs a token replacement on "@qa.build@", "@db.*@" etc tokens in the Listener config and
 	 * creates a new repository entry for the Listener Manager to read from..
 	 * @param paramName Input config paramName.
 	 * @return The file handle for the new "fixed up" config.




More information about the jboss-svn-commits mailing list