public abstract class MailMessageFactory
extends java.lang.Object
mail message
suitable for the environment in which it currently is running.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_CLASS_KEY
This key is used when to use a customized factory instance
|
protected static boolean |
JAVAX_ACTIVATION_AVAILABLE
Flag that indicates if javax.activation is available on the class path.
|
protected static boolean |
JAVAX_MAIL_AVAILABLE
Flag that indicates if javax.mail is available on the class path.
|
Constructor and Description |
---|
MailMessageFactory() |
Modifier and Type | Method and Description |
---|---|
static MailMessageFactory |
getInstance()
Returns the factory class, suitable for the runtime environment.
|
abstract MailMessage |
newMessage()
Creates a new
message to be used for sending mails. |
public static final java.lang.String FACTORY_CLASS_KEY
protected static boolean JAVAX_ACTIVATION_AVAILABLE
protected static boolean JAVAX_MAIL_AVAILABLE
public static MailMessageFactory getInstance() throws MailMessageFactoryUnavailable
MailMessageFactoryUnavailable
public abstract MailMessage newMessage()
message
to be used for sending mails.Copyright © Technia AB. All Rights Reserved.