[jboss-cvs] JBossAS SVN: r88131 - in projects/bootstrap/trunk: as-test and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun May 3 21:17:26 EDT 2009


Author: ALRubinger
Date: 2009-05-03 21:17:22 -0400 (Sun, 03 May 2009)
New Revision: 88131

Added:
   projects/bootstrap/trunk/as-test/
Modified:
   projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/config/AbstractBasicServerConfig.java
Log:
[JBBOOT-31] Handle configuration of "jboss.partition.udpGroup" and "jboss.jgroups.udp.mcast_port", overrides, and tests


Property changes on: projects/bootstrap/trunk/as-test
___________________________________________________________________
Name: svn:ignore
   + target
eclipse-target


Modified: projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/config/AbstractBasicServerConfig.java
===================================================================
--- projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/config/AbstractBasicServerConfig.java	2009-05-04 00:54:20 UTC (rev 88130)
+++ projects/bootstrap/trunk/impl-base/src/main/java/org/jboss/bootstrap/impl/base/config/AbstractBasicServerConfig.java	2009-05-04 01:17:22 UTC (rev 88131)
@@ -319,7 +319,7 @@
     */
    protected void setPropertyForUrl(final String propertyName, final URL url)
    {
-      String urlString = url != null ? url.toExternalForm() : null;
+      final String urlString = url != null ? url.toExternalForm() : null;
       this.setPropertyForString(propertyName, urlString);
    }
 
@@ -329,7 +329,7 @@
     */
    protected void setPropertyForString(final String propertyName, final String value)
    {
-      Map<String, String> properties = this.properties;
+      final Map<String, String> properties = this.properties;
       String valueToSet = value;
       if (valueToSet == null)
       {
@@ -343,6 +343,16 @@
    }
 
    /**
+    * Sets both the configuration property and System property with the 
+    * specified key and specified value
+    */
+   protected void setPropertyForString(final String propertyName, final Integer value)
+   {
+      final String stringValue = value != null ? value.toString() : null;
+      this.setPropertyForString(propertyName, stringValue);
+   }
+
+   /**
     * Throws IllegalStateException if this configuration is frozen
     * 
     * @throws IllegalStateException




More information about the jboss-cvs-commits mailing list