summaryrefslogtreecommitdiff
path: root/gnu/java/lang
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-10-02 18:28:11 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-10-02 18:28:11 +0000
commit95f8614aa4efb29e5f6bbb5127abcb88a5e4fca5 (patch)
treee5aba04b9f064ca1876cbc6201beb2eb1c1c57fc /gnu/java/lang
parent8df4fe22d75150183a900baa424a01ad217d1bbd (diff)
downloadclasspath-95f8614aa4efb29e5f6bbb5127abcb88a5e4fca5.tar.gz
2006-10-02 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/classpath/ListenerData.java: New class for holding listener data. * gnu/java/lang/management/MemoryMXBeanImpl.java: ListenerData class moved to its own file. * javax/management/MBeanServerDelegate.java, * javax/management/MBeanServerDelegateMBean.java, * javax/management/MBeanServerNotification.java: Implemented.
Diffstat (limited to 'gnu/java/lang')
-rw-r--r--gnu/java/lang/management/MemoryMXBeanImpl.java45
1 files changed, 2 insertions, 43 deletions
diff --git a/gnu/java/lang/management/MemoryMXBeanImpl.java b/gnu/java/lang/management/MemoryMXBeanImpl.java
index 064e19a19..8cb104202 100644
--- a/gnu/java/lang/management/MemoryMXBeanImpl.java
+++ b/gnu/java/lang/management/MemoryMXBeanImpl.java
@@ -37,6 +37,8 @@ exception statement from your version. */
package gnu.java.lang.management;
+import gnu.classpath.ListenerData;
+
import java.lang.management.MemoryMXBean;
import java.lang.management.MemoryNotificationInfo;
import java.lang.management.MemoryUsage;
@@ -168,49 +170,6 @@ public final class MemoryMXBeanImpl
VMMemoryMXBeanImpl.setVerbose(verbose);
}
- private class ListenerData
- {
- private NotificationListener listener;
- private NotificationFilter filter;
- private Object passback;
-
- public ListenerData(NotificationListener listener,
- NotificationFilter filter, Object passback)
- {
- this.listener = listener;
- this.filter = filter;
- this.passback = passback;
- }
-
- public NotificationListener getListener()
- {
- return listener;
- }
-
- public NotificationFilter getFilter()
- {
- return filter;
- }
-
- public Object getPassback()
- {
- return passback;
- }
-
- public boolean equals(Object obj)
- {
- if (obj instanceof ListenerData)
- {
- ListenerData data = (ListenerData) obj;
- return (data.getListener() == listener &&
- data.getFilter() == filter &&
- data.getPassback() == passback);
- }
- return false;
- }
-
- }
-
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object passback)