Skip to content

Commit

Permalink
display property per line
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 16, 2007
1 parent c1bb776 commit ae3f547
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -21,8 +21,6 @@

package org.jumpmind.symmetric.service.jmx;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Properties;

import javax.sql.DataSource;
Expand Down Expand Up @@ -75,9 +73,11 @@ public void syncTriggers() {

@ManagedAttribute(description = "The properties configured for this symmetric instance")
public String getPropertiesList() {
StringWriter writer = new StringWriter();
properties.list(new PrintWriter(writer, true));
return writer.getBuffer().toString();
StringBuilder buffer = new StringBuilder();
for (Object key : properties.keySet()) {
buffer.append(key).append("=").append(properties.getProperty((String) key)).append("<br/>");
}
return buffer.toString();
}

@ManagedAttribute(description = "The group this node belongs to")
Expand Down

0 comments on commit ae3f547

Please sign in to comment.