- added final modifier because these references shall never be changed
- used interface Context as type (updated signature of inherited method)
Signed-off-by: Roland Häder <roland@mxchange.org>
import javax.mail.Session;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import javax.mail.Session;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
+import org.apache.velocity.context.Context;
import org.mxchange.jmailee.model.delivery.BaseMailerBean;
import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery;
import org.mxchange.jmailee.model.delivery.BaseMailerBean;
import org.mxchange.jmailee.model.delivery.wrapper.WrapableEmailDelivery;
/**
* Configuration file
*/
/**
* Configuration file
*/
- private final String configFile = "org.mxchange.jmailer.config"; //NOI18N//NOI18N
+ private final String configFile = "org.mxchange.jmailer.config"; //NOI18N
}
// All required data is set, load template
}
// All required data is set, load template
- Template template = this.getTemplateEngine().getTemplate(String.format("templates/%s/%s.vm", emailWrapper.getLocale().getLanguage().toLowerCase(), emailWrapper.getTemplateName())); //NOI18N
+ final Template template = this.getTemplateEngine().getTemplate(String.format("templates/%s/%s.vm", emailWrapper.getLocale().getLanguage().toLowerCase(), emailWrapper.getTemplateName())); //NOI18N
- VelocityContext context = new VelocityContext();
+ final Context context = new VelocityContext();
// Are some variables set?
if ((emailWrapper.getTemplateVariables() != null) && (!emailWrapper.getTemplateVariables().isEmpty())) {
// Are some variables set?
if ((emailWrapper.getTemplateVariables() != null) && (!emailWrapper.getTemplateVariables().isEmpty())) {