1 8 9 package mx4j.remote.provider.iiop; 10 11 import java.io.IOException ; 12 import java.net.MalformedURLException ; 13 import java.util.Map ; 14 15 import javax.management.remote.JMXConnector ; 16 import javax.management.remote.JMXConnectorProvider ; 17 import javax.management.remote.JMXServiceURL ; 18 import javax.management.remote.rmi.RMIConnector ; 19 20 23 public class ClientProvider implements JMXConnectorProvider 24 { 25 public JMXConnector newJMXConnector(JMXServiceURL url, Map environment) throws IOException 26 { 27 String protocol = url.getProtocol(); 28 if (!"iiop".equals(protocol)) throw new MalformedURLException ("Wrong protocol " + protocol + " for provider " + this); 29 return new RMIConnector (url, environment); 30 } 31 } 32 | Popular Tags |