FileDocCategorySizeDatePackage
NotificationListenerProxy.javaAPI DocGlassfish v2 API3861Fri May 04 22:36:30 BST 2007com.sun.enterprise.admin.jmx.remote.server.notification

NotificationListenerProxy

public class NotificationListenerProxy extends Object implements NotificationListener
A Proxy for NotificationListener. An object of NotificationListenerProxy is registered to the NotificationBroadcaster for every notification listener that is registered by the client. Whenever the NotificationBroadcaster calls this proxy's handleNotification method, this proxy object will invoke ServerNotificationManager.fireNotification(...)

Fields Summary
private String
id
private ServerNotificationManager
mgr
private ObjectName
objname
private Notification
notification
private static final Logger
logger
Constructors Summary
public NotificationListenerProxy(ObjectName objname, ServerNotificationManager mgr, String id)

/*, 
        DefaultConfiguration.LOGGER_RESOURCE_BUNDLE_NAME );*/

      
                                      
                                       
        this.objname = objname;
        this.mgr = mgr;
        this.id = id;
    
Methods Summary
public java.lang.StringgetId()
Returns the client id, which has registered the notification listener represented by this proxy object.

        return id;
    
public javax.management.NotificationgetNotification()

        return notification;
    
public com.sun.enterprise.admin.jmx.remote.notification.NotificationWrappergetNotificationWrapper()

        return ( new NotificationWrapper(objname, notification) );
    
public voidhandleNotification(javax.management.Notification notification, java.lang.Object handback)

        this.notification = notification;
        mgr.fireNotification(this);