![JAR search and dependency download from the Maven repository](/logo.png)
br.com.jhonsapp.email.producer.EmailDispatcherProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of email-dispatcher Show documentation
Show all versions of email-dispatcher Show documentation
Email Dispatcher is an open source project created by Jhonys Camacho and Jhonathan Camacho to facilitate the sending of emails.
package br.com.jhonsapp.email.producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import com.outjected.email.api.MailMessage;
import br.com.jhonsapp.email.dispatcher.EmailDispatcher;
import br.com.jhonsapp.email.dispatcher.EmailDispatcherImpl;
/**
* Class responsible for producing EmailDispatcher.
*
* @see MailMessage
*
* @author Jhonathan Camacho
*
*/
@Component
public class EmailDispatcherProducer {
@Autowired
private MailMessage mailMessage;
@Bean
public EmailDispatcher emailDispatcher() {
return new EmailDispatcherImpl(this.mailMessage);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy