1 package com.ozacc.mail;
2
3 import java.io.File;
4
5 import org.apache.velocity.VelocityContext;
6
7 /***
8 * Velocityと連携して動的にメー�?データを生成し、そのデータからMailインスタンスを生成す�?インターフェース。
9 *
10 * @see com.ozacc.mail.XMLMailBuilder
11 * @see com.ozacc.mail.impl.JDomXMLMailBuilder
12 *
13 * @author Tomohiro Otsuka
14 * @version $Id: VelocityMailBuilder.java,v 1.3 2004/09/05 21:51:44 otsuka Exp $
15 */
16 public interface VelocityMailBuilder extends MailBuilder {
17
18 /***
19 * 指定さ�?たクラスパス上のファイ�?を読み�?んでMailインスタンスを生成します。
20 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
21 *
22 * @param classPath メー�?内容を記述したファイ�?のパス
23 * @param context VelocityContext
24 * @return 生成さ�?たMailインスタンス
25 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
26 */
27 Mail buildMail(String classPath, VelocityContext context) throws MailBuildException;
28
29 /***
30 * 指定さ�?たファイ�?を読み�?んでMailインスタンスを生成します。
31 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
32 *
33 * @param file メー�?内容を記述したファイ�?
34 * @param context VelocityContext
35 * @return 生成さ�?たMailインスタンス
36 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
37 */
38 Mail buildMail(File file, VelocityContext context) throws MailBuildException;
39
40 /***
41 * 実装クラスのインスタンスに予めセットさ�?た��善ーションにあ�?XMLデータを読み�?んで
42 * Mailインスタンスを生成します。
43 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
44 *
45 * @param context VelocityContext
46 * @return 生成さ�?たMailインスタンス
47 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
48 */
49
50
51 }