1 25 26 package org.objectweb.jonas.mail.factory; 27 28 import java.util.Properties ; 30 31 import javax.management.MBeanException ; 32 import javax.management.NotificationFilter ; 33 import javax.management.NotificationListener ; 34 import org.apache.commons.modeler.BaseModelMBean; 36 import org.objectweb.jonas.server.J2EEServer; 37 38 47 public class JavaMailResourceMBean extends BaseModelMBean { 48 52 public JavaMailResourceMBean() throws MBeanException { 53 super(); 54 } 55 56 60 String getFactoryName() { 61 return (String ) ((JavaMailResource) this.resource).getFactoryName(); 62 } 63 64 68 String getName() { 69 return (String ) ((JavaMailResource) this.resource).getName(); 70 } 71 72 76 void setName(String name) { 77 ((JavaMailResource) this.resource).setName(name); 78 } 79 80 84 String getFactoryType() { 85 return (String ) ((JavaMailResource) this.resource).getFactoryType(); 86 } 87 88 89 93 Properties getAuthenticationProperties() { 94 return (Properties ) ((JavaMailResource) this.resource).getAuthenticationProperties(); 95 } 96 97 101 void setAuthenticationProperties(Properties props) { 102 ((JavaMailResource) this.resource).setAuthenticationProperties(props); 103 } 104 105 109 Properties getSessionProperties() { 110 return (Properties ) ((JavaMailResource) this.resource).getSessionProperties(); 111 } 112 113 117 void setSessionProperties(Properties props) { 118 ((JavaMailResource) this.resource).setSessionProperties(props); 119 } 120 121 124 void saveConfig() { 125 ((JavaMailResource) this.resource).saveConfig(); 126 } 127 128 135 public void addNotificationListener(NotificationListener pListner, NotificationFilter pFilter, 136 java.lang.Object pHandback) throws java.lang.IllegalArgumentException { 137 ((JavaMailResource) (this.resource)).addNotificationListener(pListner, pFilter, pHandback); 138 } 139 } 140 141 | Popular Tags |