expose all brokers registered

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@909298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-02-12 08:51:58 +00:00
parent b84da17004
commit 84c76a94a0
1 changed files with 5 additions and 1 deletions

View File

@ -16,10 +16,10 @@
*/
package org.apache.activemq.broker;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -97,4 +97,8 @@ public class BrokerRegistry {
public Object getRegistryMutext() {
return mutex;
}
public Map<String, BrokerService> getBrokers() {
return Collections.unmodifiableMap(this.brokers);
}
}