1 25 26 package org.objectweb.jonas.mail.factory; 27 28 import java.util.Properties ; 29 30 public class JavaMailMimePartDSResource extends JavaMailResource { 31 32 35 protected long sequenceNumber = 0; 36 37 public JavaMailMimePartDSResource(String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider, JavaMailMimePartDS mailFactory) { 38 super(objectName, stateManageable, statisticsProvider, eventProvider, mailFactory); 39 } 40 41 45 public Properties getMimeMessageProperties() { 46 return ((JavaMailMimePartDS) mailFactory).getMimeMessageProperties(); 47 } 48 49 53 public void setMimeMessageProperties(Properties props) { 54 ((JavaMailMimePartDS) mailFactory).setMimeMessageProperties(props); 55 notifyReconfiguration(props); 56 } 57 58 62 protected long getSequenceNumber() { 63 return ++sequenceNumber; 64 } 65 } 66 | Popular Tags |