home *** CD-ROM | disk | FTP | other *** search
- package javax.management;
-
- import mx4j.log.Logger;
-
- class NotificationBroadcasterSupport$3 implements Runnable {
- // $FF: synthetic field
- private final NotificationFilter val$filter;
- // $FF: synthetic field
- private final Notification val$n;
- // $FF: synthetic field
- private final boolean val$info;
- // $FF: synthetic field
- private final Logger val$logger;
- // $FF: synthetic field
- private final Object val$handback;
- // $FF: synthetic field
- private final NotificationListener val$listener;
- // $FF: synthetic field
- private final NotificationBroadcasterSupport this$0;
-
- NotificationBroadcasterSupport$3(NotificationBroadcasterSupport this$0, NotificationFilter val$filter, Notification val$n, boolean val$info, Logger val$logger, Object val$handback, NotificationListener val$listener) {
- this.this$0 = this$0;
- this.val$filter = val$filter;
- this.val$n = val$n;
- this.val$info = val$info;
- this.val$logger = val$logger;
- this.val$handback = val$handback;
- this.val$listener = val$listener;
- }
-
- public void run() {
- boolean enabled = false;
-
- try {
- enabled = this.val$filter != null && this.val$filter.isNotificationEnabled(this.val$n);
- } catch (RuntimeException x) {
- if (this.val$info) {
- this.val$logger.info("\t\tRuntimeException caught from isNotificationEnabled", x);
- }
- }
-
- if (this.val$info) {
- this.val$logger.info("\t\tFilter is: " + this.val$filter + ", enabled: " + enabled);
- }
-
- if (enabled) {
- if (this.val$info) {
- this.val$logger.info("\t\tHandback is: " + this.val$handback);
- this.val$logger.info("\t\tSending notification " + this.val$n);
- }
-
- try {
- this.val$listener.handleNotification(this.val$n, this.val$handback);
- } catch (RuntimeException x) {
- if (this.val$info) {
- this.val$logger.info("\t\tRuntimeException caught from handleNotification", x);
- }
- }
- }
-
- }
- }
-