public class MailFactory
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
MailFactory() |
| Modifier and Type | Method and Description |
|---|---|
static MailMessage |
getInstance(java.lang.String type)
Returns a new instance of a configured mail message class.
|
private static final long serialVersionUID
public static MailMessage getInstance(java.lang.String type)
Example:
MailMessage.class=com.dpslink.somepackage.YourObject
If no property exists or the defined class doesn't exist, then an
instance of the MailMessage class is returned.
type - (String) The type code for the message to send. Must be
one of the predefined MSG_* type constants in the MailMessage class or in an implementation subclass.null if
unable to create the requested object. If no object class is
defined in properties, the object for the MailMessage
class is created.