[seam-issues] [JBoss JIRA] Created: (SEAMMAIL-19) Utilize an Interface for EmailTemplates

Cody Lerum (JIRA) jira-events at lists.jboss.org
Sun Feb 27 17:53:05 EST 2011


Utilize an Interface for EmailTemplates
---------------------------------------

                 Key: SEAMMAIL-19
                 URL: https://issues.jboss.org/browse/SEAMMAIL-19
             Project: Seam Mail
          Issue Type: Enhancement
    Affects Versions: 3.0.0.Alpha1
            Reporter: Cody Lerum
            Assignee: Cody Lerum
             Fix For: 3.0.0.Alpha1


Have you considered creating an abstraction here that alows for pluggable template resolvers? Otherwise you have this "explosion" of methods in the interface that may end up causing maintenance woes. However, if you replaced this with something like:

    .template(new HtmlFromClassPath("template.html.vm"))
    .subject(new HtmlFromClassPath("subject.html.vm")) 

People would be empowered to implement a simple interface with limitless extension possibilities.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list