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.impl.XMLVelocityMailBuilderImpl
11 * @see com.ozacc.mail.impl.JDomXMLMailBuilder
12 *
13 * @since 1.0
14 * @author Tomohiro Otsuka
15 * @version $Id: VelocityMailBuilder.java,v 1.4 2004/09/13 07:09:13 otsuka Exp $
16 */
17 public interface VelocityMailBuilder extends MailBuilder {
18
19 /***
20 * 指定さ�?たクラスパス上のファイ�?を読み�?んでMailインスタンスを生成します。
21 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
22 *
23 * @param classPath メー�?内容を記述したファイ�?のパス
24 * @param context VelocityContext
25 * @return 生成さ�?たMailインスタンス
26 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
27 */
28 Mail buildMail(String classPath, VelocityContext context) throws MailBuildException;
29
30 /***
31 * 指定さ�?たファイ�?を読み�?んでMailインスタンスを生成します。
32 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
33 *
34 * @param file メー�?内容を記述したファイ�?
35 * @param context VelocityContext
36 * @return 生成さ�?たMailインスタンス
37 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
38 */
39 Mail buildMail(File file, VelocityContext context) throws MailBuildException;
40
41 /***
42 * 実装クラスのインスタンスに予めセットさ�?た��善ーションにあ�?XMLデータを読み�?んで
43 * Mailインスタンスを生成します。
44 * 指定さ�?たVelocityContextを使って、XMLファイ�?の内容を動的に生成できます。
45 *
46 * @param context VelocityContext
47 * @return 生成さ�?たMailインスタンス
48 * @throws MailBuildException Mailインスタンスの生成に失敗した�?�?
49 */
50
51
52 }