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

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.objectweb.jonas.mail.internal.factory.mbean.JavaMailResourceMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, PersistentMBean

public class JavaMailResourceMBean
extends org.apache.commons.modeler.BaseModelMBean

This interface defines all the management methods provided by the JavaMailResource objects.

Author:
Florent Benoit, Ludovic Bert, Adriana Danes: - Refactor code: rename the management methods (use straightforward names, as they are to be used in a Management Console) - J2EEManagement conformance - Use jakarta-commons modeler

Field Summary
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
JavaMailResourceMBean()
          Default ModelMBean Constructor.
 
Method Summary
 void addNotificationListener(NotificationListener pListner, NotificationFilter pFilter, Object pHandback)
          Delegates the notification support to the wrapped resource.
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaMailResourceMBean

public JavaMailResourceMBean()
                      throws MBeanException,
                             RuntimeOperationsException
Default ModelMBean Constructor.

Throws:
MBeanException - rethrown from BaseModelMBean constructor.
RuntimeOperationsException - rethrown from BaseModelMBean constructor.
Method Detail

addNotificationListener

public void addNotificationListener(NotificationListener pListner,
                                    NotificationFilter pFilter,
                                    Object pHandback)
                             throws IllegalArgumentException
Delegates the notification support to the wrapped resource.

Specified by:
addNotificationListener in interface NotificationBroadcaster
Overrides:
addNotificationListener in class org.apache.commons.modeler.BaseModelMBean
Parameters:
pListner - Listener to notify
pFilter - Notification filter
pHandback - ??
Throws:
IllegalArgumentException - if notification is not done


Copyright © 2007 OW2 Consortium. All Rights Reserved.