|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailService
This interface provides a description of the JavaMail service.
| Field Summary | |
|---|---|
static String |
MIMEPART_PROPERTY_TYPE
MimePart DataSource marker. |
static String |
PROPERTY_NAME
JOnAS-specific properties (name). |
static String |
PROPERTY_TYPE
JOnAS-specific properties (type). |
static String |
SESSION_PROPERTY_TYPE
Session marker. |
| Method Summary | |
|---|---|
void |
createMailFactory(String name,
Properties props)
Create a mail factory with the specified properties and register it into the registry. |
void |
recreateJavaMailFactory(JavaMail factory)
This method is used when a Mail Factory configuration is modified via jonasAdmin. |
void |
renameJavaMailFactory(String oldName,
JavaMail factory)
This method is used when a particular Mail Factory configuration operation is done via jonasAdmin : when the JNDI name of this resource is modified. |
void |
unbindMailFactories()
Unregister all the binding factories on the server. |
| Methods inherited from interface org.ow2.jonas.service.Service |
|---|
getName, init, isStarted, setName, start, stop |
| Field Detail |
|---|
static final String SESSION_PROPERTY_TYPE
static final String MIMEPART_PROPERTY_TYPE
static final String PROPERTY_NAME
static final String PROPERTY_TYPE
| Method Detail |
|---|
void createMailFactory(String name,
Properties props)
throws MailServiceException
name - the mail factory nameprops - the properties used to configure the mail factory.
MailServiceException - if the creation or the registration of the
factory failed.
void recreateJavaMailFactory(JavaMail factory)
throws MailServiceException
factory - the factory
MailServiceException - if the recreation of the factory failed.
void renameJavaMailFactory(String oldName,
JavaMail factory)
throws MailServiceException
oldName - old name of the factoryfactory - the new factory
MailServiceException - if the rename of the the factory failed.
void unbindMailFactories()
throws MailServiceException
MailServiceException - if the unregistration of the factories
failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||