00001
00027 package org.objectweb.jonas.mail;
00028
00029
00030 import java.util.Properties;
00031
00032
00033 import org.objectweb.jonas.service.Service;
00034 import org.objectweb.jonas.mail.factory.JavaMail;
00035
00041 public interface MailService extends Service {
00042
00052 void createMailFactory(String name, Properties props) throws MailServiceException;
00053
00061 void recreateJavaMailFactory(JavaMail factory) throws MailServiceException;
00062
00074 void renameJavaMailFactory(String oldName, JavaMail factory) throws MailServiceException;
00075
00081 void unbindMailFactories() throws MailServiceException;
00082
00083 }