Class DefaultMailProvider
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
ch.tocco.nice2.messaging.mail.impl.DefaultMailProvider
- All Implemented Interfaces:
MailProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.MailProvider
MailProvider.SenderMode
-
Field Summary
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
emailEncodeAttachmentFileNames, logger, mailArchive, mailSendThrottle, messageProcessorMultiplexer, persistenceService, templateEngineFactory
-
Constructor Summary
ConstructorDescriptionDefaultMailProvider
(org.slf4j.Logger log, PersistenceService persistenceService, SessionFactory sessionFactory, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MessageReader messageReader) -
Method Summary
Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
setEmailEncodeAttachmentFileNames, setMessageProcessors
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.messaging.mail.api.MailProvider
getAllowedSenderAddresses, getSenderMode
-
Constructor Details
-
DefaultMailProvider
public DefaultMailProvider(org.slf4j.Logger log, PersistenceService persistenceService, SessionFactory sessionFactory, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, MessageReader messageReader)
-
-
Method Details
-
getId
- Returns:
- a unique identifier
-
instantiateMail
- Returns:
- creates a new
Mail
instance that supports the current mail provider
-