rs.mail.templates.MessageBuilderFactory Maven / Gradle / Ivy
/**
*
*/
package rs.mail.templates;
import rs.mail.templates.impl.FreemarkerMessageBuilder;
import rs.mail.templates.impl.MessageCreator;
/**
* Entry class for message generation.
*
* Use this class to create your message builder.
*
* @author ralph
*
*/
public class MessageBuilderFactory {
/**
* Creates a new {@link MessageBuilder}.
* @param the type of the message to be built
* @param messageCreator the producer of the message type
* @return the new message builder
*/
public static MessageBuilder newBuilder(MessageCreator messageCreator) {
return new FreemarkerMessageBuilder<>(messageCreator);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy