[jboss-cvs] JBossAS SVN: r88104 - branches/Branch_5_x/varia/src/main/org/jboss/services/binding.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 1 12:37:58 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-05-01 12:37:58 -0400 (Fri, 01 May 2009)
New Revision: 88104

Modified:
   branches/Branch_5_x/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java
Log:
[JBAS-6259] Make serverName property writable via management tools

Modified: branches/Branch_5_x/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java
===================================================================
--- branches/Branch_5_x/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java	2009-05-01 15:07:24 UTC (rev 88103)
+++ branches/Branch_5_x/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java	2009-05-01 16:37:58 UTC (rev 88104)
@@ -122,7 +122,7 @@
     * The name of the config set this manager is associated with. This is a
     * logical name used to lookup ServiceConfigs from the ServiceBindingStore.
     */
-   private final String serverName;
+   private String serverName;
    
    /** The ServiceConfig store instance
     */
@@ -144,20 +144,31 @@
    // -------------------------------------------------------------  Properties
    
    /**
-    * The value of the <code>serverName</code> param this instance should pass 
+    * Gets the value of the <code>serverName</code> param this instance should pass 
     * to <code>ServiceBindingStore</code> when 
     * {@link ServiceBindingStore#getServiceBinding(String, String, String) requesting bindings}.
     * 
     * @return name of the set of bindings this server uses
-    * 
-    * @jmx:managed-attribute
     */
    @ManagementProperty(description="the value of the serverName param  this " +
-   		"instance should pass to ServiceBindingStore when requesting bindings")
+   		"instance should pass to ServiceBindingStore when requesting bindings",
+         use={ViewUse.CONFIGURATION}, readOnly=false)
    public String getServerName()
    {
       return this.serverName;
    }
+   
+   /**
+    * Sets the value of the <code>serverName</code> param this instance should pass 
+    * to <code>ServiceBindingStore</code> when 
+    * {@link ServiceBindingStore#getServiceBinding(String, String, String) requesting bindings}.
+    * 
+    * @return name of the set of bindings this server uses
+    */
+   public void setServerName(String serverName)
+   {
+      this.serverName = serverName;
+   }
 
    @ManagementProperty(description="the set of service binding configurations associated with this instance",
                        use={ViewUse.STATISTIC})




More information about the jboss-cvs-commits mailing list