01: package ru.emdev.EmForge.email;
02:
03: import java.util.Map;
04:
05: /** Email Factory Interface is used for creation new emails
06: *
07: * @author akakunin
08: *
09: */
10: public interface EmailFactory {
11: /** This method is responsible for creation email with specified template
12: *
13: * @param emailTemplateName - name of template, should be used for email creation (for example DepartmentNotification, NewUserNotification and so on)
14: * @return email instance
15: */
16: public Email createEmail(String emailTemplateName);
17:
18: public void setEmailsTemplatingMap(
19: Map<String, String> emailsTemplatingMap);
20: }
|