Interface RetrieverEmailTemplateFactory<Type extends Email>

  • Type Parameters:
    Type - Type of email

    public interface RetrieverEmailTemplateFactory<Type extends Email>
    An interface to reference a an OSGI Service for creating EmailTemplates. that are build form a a web page
    This allow to share an instance wide configuration, like a From address or charSet
    Since:
    5.4
    • Method Detail

      • create

        EmailTemplate<? extends Type> create​(java.net.URI uri)
                                      throws RepositoryException
        Parameters:
        uri - to use as content of the Template to build
        Returns:
        template or null if not able to build one
        Throws:
        RepositoryException - in case of exception building the template