org.jboss.test.jmx.compliance.server.support
Class BroadcasterInvocationHandlerTest

java.lang.Object
  extended byorg.jboss.test.jmx.compliance.server.support.InvocationHandlerTest
      extended byorg.jboss.test.jmx.compliance.server.support.BroadcasterInvocationHandlerTest
All Implemented Interfaces:
InvocationHandlerTestMBean, javax.management.NotificationBroadcaster

public class BroadcasterInvocationHandlerTest
extends InvocationHandlerTest
implements javax.management.NotificationBroadcaster

Version:
$Revision: 1.1 $
Author:
Adrian Brock.

Field Summary
 
Fields inherited from class org.jboss.test.jmx.compliance.server.support.InvocationHandlerTest
invokeNoArgsNoReturnInvoked, invokeNoReturnInvoked, primitive, type
 
Constructor Summary
BroadcasterInvocationHandlerTest()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
          Add a listener to an MBean.
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
          Returns the notification metadata associated with the MBean.
 void removeNotificationListener(javax.management.NotificationListener listener)
          Removes a listener from an MBean.
 void sendNotification()
           
 
Methods inherited from class org.jboss.test.jmx.compliance.server.support.InvocationHandlerTest
getAttribute, getType, invoke, invokeMixedParameters, invokeNoArgs, invokeNoArgsNoReturn, invokeNoReturn, isIsPrimitive, setAttribute, setIsPrimitive, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcasterInvocationHandlerTest

public BroadcasterInvocationHandlerTest()
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    Object handback)
Description copied from interface: javax.management.NotificationBroadcaster
Add a listener to an MBean.

Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
Parameters:
listener - implementation of the listener object
filter - implementation of the filter object or null if no filtering is required
handback - A handback object associated with each notification sent by this notification broadcaster.

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Description copied from interface: javax.management.NotificationBroadcaster
Returns the notification metadata associated with the MBean.

Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
Returns:
MBean's notification metadata
See Also:
MBeanNotificationInfo

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Description copied from interface: javax.management.NotificationBroadcaster
Removes a listener from an MBean.

Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Parameters:
listener - the listener object to remove
Throws:
javax.management.ListenerNotFoundException - if the listener was not found

sendNotification

public void sendNotification()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.