1 45 package org.exolab.jms.server.net; 46 47 import org.exolab.jms.config.types.SchemeType; 48 import org.exolab.jms.config.Configuration; 49 50 51 57 public class ConnectorCfgFactory { 58 59 66 public static ConnectorCfg create( 67 SchemeType scheme, Configuration config) { 68 ConnectorCfg result = null; 69 if (scheme.equals(SchemeType.TCP)) { 70 result = new TCPConnectorCfg(config); 71 } else if (scheme.equals(SchemeType.TCPS)) { 72 result = new TCPSConnectorCfg(config); 73 } else if (scheme.equals(SchemeType.RMI)) { 74 result = new RMIConnectorCfg(config); 75 } else if (scheme.equals(SchemeType.HTTP)) { 76 result = new HTTPConnectorCfg(config); 77 } else if (scheme.equals(SchemeType.HTTPS)) { 78 result = new HTTPSConnectorCfg(config); 79 } else if (scheme.equals(SchemeType.EMBEDDED)) { 80 result = new VMConnectorCfg(config); 81 } 82 return result; 83 } 84 } 85 | Popular Tags |