JavaMailResourceMBean.java

00001 
00026 package org.objectweb.jonas.mail.factory;
00027 
00028 //import java
00029 import java.util.Properties;
00030 
00031 import javax.management.MBeanException;
00032 import javax.management.NotificationFilter;
00033 import javax.management.NotificationListener;
00034 // jakarta-commons
00035 import org.apache.commons.modeler.BaseModelMBean;
00036 import org.objectweb.jonas.server.J2EEServer;
00037 
00047 public class JavaMailResourceMBean extends BaseModelMBean {
00052     public JavaMailResourceMBean() throws MBeanException {
00053         super();
00054     }
00055 
00060     String getFactoryName() {
00061         return (String) ((JavaMailResource) this.resource).getFactoryName();
00062     }
00063 
00068     String getName() {
00069         return (String) ((JavaMailResource) this.resource).getName();
00070     }
00071 
00076     void setName(String name) {
00077         ((JavaMailResource) this.resource).setName(name);
00078     }
00079 
00084     String getFactoryType() {
00085         return (String) ((JavaMailResource) this.resource).getFactoryType();
00086     }
00087 
00088 
00093     Properties getAuthenticationProperties() {
00094         return (Properties) ((JavaMailResource) this.resource).getAuthenticationProperties();
00095     }
00096 
00101     void setAuthenticationProperties(Properties props) {
00102         ((JavaMailResource) this.resource).setAuthenticationProperties(props);
00103     }
00104 
00109     Properties getSessionProperties() {
00110         return (Properties) ((JavaMailResource) this.resource).getSessionProperties();
00111     }
00112 
00117     void setSessionProperties(Properties props) {
00118         ((JavaMailResource) this.resource).setSessionProperties(props);
00119     }
00120 
00124     void saveConfig() {
00125         ((JavaMailResource) this.resource).saveConfig();
00126     }
00127 
00135     public void addNotificationListener(NotificationListener pListner, NotificationFilter pFilter,
00136             java.lang.Object pHandback) throws java.lang.IllegalArgumentException {
00137         ((JavaMailResource) (this.resource)).addNotificationListener(pListner, pFilter, pHandback);
00138     }
00139 }
00140 

Generated on Tue Feb 15 15:05:18 2005 for JOnAS by  doxygen 1.3.9.1