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.1 2004/09/04 13:56:12 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 }