01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.monitoring;
06:
07: import javax.management.AttributeChangeNotificationFilter;
08:
09: public class SubsystemNotificationFilter extends
10: AttributeChangeNotificationFilter {
11: public void setEnabledAttributes(String[] names) {
12: if (names == null) {
13: disableAllAttributes();
14: } else if (names.length == 0) {
15: disableAllAttributes();
16: } else {
17: for (int i = 0; i < names.length; i++) {
18: enableAttribute(names[i]);
19: }
20: }
21: }
22: }
|