org.jminix.server.AbstractMapServerConnectionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jminix Show documentation
Show all versions of jminix Show documentation
A simple embeddable restful JMX console
/*
* ------------------------------------------------------------------------------------------------
* Copyright 2011 by Swiss Post, Information Technology Services
* ------------------------------------------------------------------------------------------------
* $Id$
* ------------------------------------------------------------------------------------------------
*
*/
package org.jminix.server;
import java.util.ArrayList;
import java.util.List;
import javax.management.MBeanServerConnection;
/**
* Superclass for connection providers providing maps.
*
* @author bovetl
* @version $Revision$
* @see
*/
public abstract class AbstractMapServerConnectionProvider implements ServerConnectionProvider {
/**
* Not explicitly documented.
* @see org.jminix.server.ServerConnectionProvider#getConnections()
*/
public List getConnections() {
List result = new ArrayList();
for(String key: getConnectionKeys()) {
result.add(getConnection(key));
}
return result;
}
}