All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.phasetwo.keycloak.themes.theme.FreeMarkerAndMustacheEmailTemplateProviderFactory Maven / Gradle / Ivy

There is a newer version: 0.31
Show newest version
package io.phasetwo.keycloak.themes.theme;

import com.google.auto.service.AutoService;
import lombok.extern.jbosslog.JBossLog;
import org.keycloak.email.EmailTemplateProvider;
import org.keycloak.email.EmailTemplateProviderFactory;
import org.keycloak.email.freemarker.FreeMarkerEmailTemplateProviderFactory;
import org.keycloak.models.KeycloakSession;

@JBossLog
@AutoService(EmailTemplateProviderFactory.class)
public class FreeMarkerAndMustacheEmailTemplateProviderFactory
    extends FreeMarkerEmailTemplateProviderFactory {
  @Override
  public EmailTemplateProvider create(KeycloakSession session) {
    log.infof("creating new FreeMarkerAndMustacheEmailTemplateProviderFactory");
    return new FreeMarkerAndMustacheEmailTemplateProvider(session);
  }

  @Override
  public String getId() {
    return "freemarker-plus-mustache";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy