1 7 8 package com.sun.jmx.remote.internal; 9 10 import javax.security.auth.Subject ; 11 12 import javax.management.Notification ; 13 import javax.management.NotificationListener ; 14 import javax.management.NotificationFilter ; 15 import javax.management.ObjectName ; 16 17 public class ClientListenerInfo extends ListenerInfo { 18 public ClientListenerInfo(Integer listenerID, 19 ObjectName name, 20 NotificationListener listener, 21 NotificationFilter filter, 22 Object handback, 23 Subject delegationSubject) { 24 super(listenerID, name, listener, filter, handback, 25 delegationSubject); 26 } 27 28 public boolean sameAs(ObjectName name, 29 NotificationListener listener, 30 NotificationFilter filter, 31 Object handback) { 32 return ( getObjectName().equals(name) && 33 getListener() == listener && 34 getNotificationFilter() == filter && 35 getHandback() == handback); 36 } 37 38 public boolean sameAs(ObjectName name, 39 NotificationListener listener) { 40 return ( getObjectName().equals(name) && 41 getListener() == listener); 42 } 43 44 public boolean sameAs(ObjectName name) { 45 return (getObjectName().equals(name)); 46 } 47 } 48 | Popular Tags |