[jboss-cvs] JBossAS SVN: r88108 - trunk/varia/src/main/org/jboss/services/binding.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri May 1 15:47:16 EDT 2009
Author: bstansberry at jboss.com
Date: 2009-05-01 15:47:16 -0400 (Fri, 01 May 2009)
New Revision: 88108
Modified:
trunk/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java
Log:
[JBAS-6259] Make serverName property writable via management tools
Modified: trunk/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java
===================================================================
--- trunk/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java 2009-05-01 18:30:30 UTC (rev 88107)
+++ trunk/varia/src/main/org/jboss/services/binding/ServiceBindingManager.java 2009-05-01 19:47:16 UTC (rev 88108)
@@ -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