- Timestamp:
- 01/17/10 18:30:55 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogicMail/src/org/logicprobe/LogicMail/util/Connection.java
r608 r614 119 119 private static final byte[] CRLF = new byte[] { 13, 10 }; 120 120 121 private static UtilFactory connectionFactory;121 private UtilFactory utilFactory; 122 122 protected String serverName; 123 123 protected int serverPort; … … 151 151 protected Connection(ConnectionConfig connectionConfig) { 152 152 this.globalConfig = MailSettings.getInstance().getGlobalConfig(); 153 this.utilFactory = UtilFactory.getInstance(); 153 154 154 155 this.serverName = connectionConfig.getServerName(); … … 195 196 this.socket = null; 196 197 } 197 198 /**199 * Sets the connection factory reference.200 *201 * @param connectionFactory connection factory reference202 */203 static void setConnectionFactory(UtilFactory connectionFactory) {204 Connection.connectionFactory = connectionFactory;205 }206 198 207 199 /** … … 213 205 } 214 206 215 connectionFactory.addOpenConnection(this);207 utilFactory.addOpenConnection(this); 216 208 217 209 socket = openStreamConnection(); … … 277 269 } 278 270 279 connectionFactory.removeOpenConnection(this);271 utilFactory.removeOpenConnection(this); 280 272 281 273 EventLogger.logEvent(AppInfo.GUID, "Connection closed".getBytes(),
Note: See TracChangeset
for help on using the changeset viewer.
