?? javamailconnectionfactory.java
字號:
/* * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. *//* * @(#)JavaMailMessageListener.java */package samples.connectors.mailconnector.api;import javax.mail.*;import javax.mail.Message.*;import javax.mail.internet.*;import javax.resource.*;import javax.resource.cci.*;/** * Interface for obtaining mail server connections. * * @author Alejandro E. Murillo */public interface JavaMailConnectionFactory{ /** * Gets a connection to the Mail Server. * Passes along mail server and user info. * * @return Connection Connection instance */ public JavaMailConnection createConnection() throws ResourceException; /** * Gets a connection to a Mail Server instance. A component should use * the getConnection variant with a javax.resource.cci.ConnectionSpec * parameter if it needs to pass any resource-adapter-specific security * information and connection parameters. * * @param properties connection parameters and security information * specified as ConnectionSpec instance * @return a JavaMailConnection instance */ public JavaMailConnection createConnection(ConnectionSpec properties) throws ResourceException;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -