| org.objectweb.jonas.mail.MailService
All known Subclasses: org.objectweb.jonas.mail.MailServiceImpl,
MailService | public interface MailService extends Service(Code) | | This interface provides a description of the JavaMail service.
author: Ludovic Bert author: Florent Benoit |
createMailFactory | void createMailFactory(String name, Properties props) throws MailServiceException(Code) | | Create a mail factory with the specified properties and register it into
the registry. The created object is an instance of one of the 2 classes :
JavaMailSession or JavaMailMimePartDS.
Parameters: name - the mail factory name Parameters: props - the properties used to configure the mail factory. throws: MailServiceException - if the creation or the registration of thefactory failed. |
recreateJavaMailFactory | void recreateJavaMailFactory(JavaMail factory) throws MailServiceException(Code) | | This method is used when a Mail Factory configuration is modified via
jonasAdmin. In this case, the updated JavaMail object (JavaMailSession or
JavaMailMimePartDS object) must be rebound in JNDI
Parameters: factory - the factory throws: MailServiceException - if the recreation of the factory failed. |
renameJavaMailFactory | void renameJavaMailFactory(String oldName, JavaMail factory) throws MailServiceException(Code) | | This method is used when a particular Mail Factory configuration
operation is done via jonasAdmin : when the JNDI name of this resource is
modified. In this case, the initial JavaMail object (JavaMailSession or
JavaMailMimePartDS object) must be unbound and the updated JavaMail
object must be reloaded. Also, the Mail Service private data structures
must be updated.
Parameters: oldName - old name of the factory Parameters: factory - the new factory throws: MailServiceException - if the rename of the the factory failed. |
|
|