Package org.nuxeo.mail
Class MailServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.mail.MailServiceImpl
- All Implemented Interfaces:
MailService
,Adaptable
,Component
,Extensible
,TimestampedService
- Since:
- 2023.4
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected final Map<String,
MailSender> static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionregisterJndiSMTPSender
(String jndiName) Deprecated.void
sendMail
(MailMessage msg) void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
DEFAULT_SENDER
- See Also:
-
SENDERS_XP
- See Also:
-
senders
-
-
Constructor Details
-
MailServiceImpl
public MailServiceImpl()
-
-
Method Details
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
- Throws:
InterruptedException
-
sendMail
- Specified by:
sendMail
in interfaceMailService
-
registerJndiSMTPSender
Deprecated.since 2023.4 This is a fallback method to register aJndiSMTPMailSender
on the fly when only given a custom JNDI session name. Use aMailSenderDescriptor
to define a customMailSender
instead- Returns:
- the sender name to use in
MailMessage
-
JndiSMTPMailSender
on the fly when only given a custom JNDI session name.