org.objectweb.jonas.mail.internal.factory.mbean
Class JavaMailMimePartDSResource

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
          extended by org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended by org.objectweb.jonas.management.j2eemanagement.J2EEResource
                  extended by org.objectweb.jonas.mail.internal.factory.mbean.JavaMailResource
                      extended by org.objectweb.jonas.mail.internal.factory.mbean.JavaMailMimePartDSResource
All Implemented Interfaces:
NotificationBroadcaster, NotificationEmitter

public class JavaMailMimePartDSResource
extends JavaMailResource

JSR 77 Implementation of the Java Mail MimePart DS Resource.

Author:
Adriana Danes

Field Summary
protected  long sequenceNumber
          Value used as sequence number by reconfiguration notifications
 
Fields inherited from class org.objectweb.jonas.mail.internal.factory.mbean.JavaMailResource
mailFactory
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JavaMailMimePartDSResource(String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider, JavaMailMimePartDS mailFactory)
           
 
Method Summary
 Properties getMimeMessageProperties()
          Get the mimePartDatasource properties.
protected  long getSequenceNumber()
          Gets the sequence number for MBeans operations.
 void setMimeMessageProperties(Properties props)
          Set the mimePartDatasource properties.
 
Methods inherited from class org.objectweb.jonas.mail.internal.factory.mbean.JavaMailResource
getAuthenticationProperties, getFactoryName, getFactoryType, getName, getSessionProperties, notifyReconfiguration, saveConfig, setAuthenticationProperties, setName, setSessionProperties
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sequenceNumber

protected long sequenceNumber
Value used as sequence number by reconfiguration notifications

Constructor Detail

JavaMailMimePartDSResource

public JavaMailMimePartDSResource(String objectName,
                                  boolean stateManageable,
                                  boolean statisticsProvider,
                                  boolean eventProvider,
                                  JavaMailMimePartDS mailFactory)
Method Detail

getMimeMessageProperties

public Properties getMimeMessageProperties()
Get the mimePartDatasource properties.

Returns:
the mimePartDatasource properties

setMimeMessageProperties

public void setMimeMessageProperties(Properties props)
Set the mimePartDatasource properties.

Parameters:
props - the mimePartDatasource properties

getSequenceNumber

protected long getSequenceNumber()
Gets the sequence number for MBeans operations.

Specified by:
getSequenceNumber in class JavaMailResource
Returns:
the sequence number for MBeans operations


Copyright © 2007 OW2 Consortium. All Rights Reserved.