org.objectweb.jonas.mail
Interface MailService
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- MailServiceImpl
- public interface MailService
- extends Service
This interface provides a description of the JavaMail service.
- Author:
- Ludovic Bert, Florent Benoit
createMailFactory
public void createMailFactory(java.lang.String name,
java.util.Properties props)
throws MailServiceException
- 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 :
JMailSession or
- Parameters:
namr
- the mail factory nameprops
- the properties used to configure the mail factory.- Throws:
MailServiceException
- if the creation or the registration of
the factory failed.
recreateMailFactory
public void recreateMailFactory(JMail factory)
throws MailServiceException
renameMailFactory
public void renameMailFactory(java.lang.String oldName,
JMail factory)
throws MailServiceException
unbindMailFactories
public void unbindMailFactories()
throws MailServiceException
- Unregister all the binding factories on the server.
- Throws:
MailServiceException
- if the unregistration of the factories
failed.