org.jboss.mx.notification
Interface ListenerRegistration

All Known Implementing Classes:
DefaultListenerRegistration, MBeanServerListenerRegistration

public interface ListenerRegistration

A notification listener registration.

Version:
$Revision: 1.3.8.1 $
Author:
Adrian Brock.
See Also:
ListenerRegistry, ListenerRegistrationFactory

Method Summary
 NotificationFilter getFilter()
          Retrieve the filter for this registration.
 Object getHandback()
          Retrieve the handback object for this registration.
 NotificationListener getListener()
          Retrieve the listener for this registration.
 NotificationFilter getRegisteredFilter()
          Retrieve the filter that was registered.
 NotificationListener getRegisteredListener()
          Retrieve the listener that was registered.
 void removed()
          Used to tell the registration it is no longer required.
 

Method Detail

getListener

NotificationListener getListener()
Retrieve the listener for this registration.

Returns:
the listener

getFilter

NotificationFilter getFilter()
Retrieve the filter for this registration.

Returns:
the listener

getHandback

Object getHandback()
Retrieve the handback object for this registration.

Returns:
the handback object

getRegisteredListener

NotificationListener getRegisteredListener()
Retrieve the listener that was registered. This might be different from listener to use, e.g. the registration factory may generate a proxy.

Returns:
the listener

getRegisteredFilter

NotificationFilter getRegisteredFilter()
Retrieve the filter that was registered. This might be different from filter to use, e.g. the registration factory may generate a proxy.

Returns:
the filter

removed

void removed()
Used to tell the registration it is no longer required.



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