[jboss-svn-commits] JBL Code SVN: r5706 - labs/jbossesb/trunk/product/core/common/src/org/jboss/soa/esb/parameters

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 10 11:43:03 EDT 2006


Author: tfennelly
Date: 2006-08-10 11:43:01 -0400 (Thu, 10 Aug 2006)
New Revision: 5706

Modified:
   labs/jbossesb/trunk/product/core/common/src/org/jboss/soa/esb/parameters/ParamFileRepository.java
Log:
v small mods - just mde some methods more visible

Modified: labs/jbossesb/trunk/product/core/common/src/org/jboss/soa/esb/parameters/ParamFileRepository.java
===================================================================
--- labs/jbossesb/trunk/product/core/common/src/org/jboss/soa/esb/parameters/ParamFileRepository.java	2006-08-10 14:55:45 UTC (rev 5705)
+++ labs/jbossesb/trunk/product/core/common/src/org/jboss/soa/esb/parameters/ParamFileRepository.java	2006-08-10 15:43:01 UTC (rev 5706)
@@ -55,7 +55,7 @@
 		} else {
 			root = new File(rootDir);
 			if(!root.exists()) {
-				throw new IllegalStateException("Nonexistant directory specified in the [" + FILE_PARAMS_REPOS_ROOT + "] System property.");
+				throw new IllegalStateException("Nonexistant directory specified in the [" + FILE_PARAMS_REPOS_ROOT + "] System property: " + root.getAbsolutePath());
 			}
 		}
 		
@@ -135,7 +135,7 @@
 	 * Get the repository root directory.
 	 * @return The repository root directory.
 	 */
-	protected File getRoot() {
+	public File getRoot() {
 		return root;
 	}
 
@@ -144,10 +144,20 @@
 	 * @param paramName The param name.
 	 * @return The param file.
 	 */
-	protected File toParamFile(FileParamName paramName) {
+	public File toParamFile(String name) {
+		FileParamName paramName = asserNameOK(name);
 		return new File(root, paramName.toString());
 	}
 
+	/**
+	 * Get the param file for the specified param name.
+	 * @param paramName The param name.
+	 * @return The param file.
+	 */
+	private File toParamFile(FileParamName paramName) {
+		return new File(root, paramName.toString());
+	}
+
 	private FileParamName asserNameOK(String name) {
 		FileParamName paramName;
 		




More information about the jboss-svn-commits mailing list