Implementation of NotificationFilter for attribute change
notifications. This class is used by BaseModelMBean to
construct attribute change notification event filters when a filter is not
supplied by the application.
| Modifier and Type | Field and Description |
|---|---|
| private Set | names
The set of attribute names that are accepted by this filter. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BaseAttributeFilter(String
Name of the attribute to be accepted by this filter, or
name)null to accept all attribute namesConstruct a new filter that accepts only the specified attribute name. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAttribute(String
Name of the attribute to be accepted name)Add a new attribute name to the set of names accepted by this filter. |
| public void | |
| public String[] | |
| public boolean | isNotificationEnabled(Notification
The notification to be sent. notification)Implements javax. Test whether notification enabled for this event. |
| public void | removeAttribute(String
Name of the attribute to be removed name)Remove an attribute name from the set of names accepted by this filter. |
| names | back to summary |
|---|---|
| private Set<String> names The set of attribute names that are accepted by this filter. If this list is empty, all attribute names are accepted. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| BaseAttributeFilter | back to summary |
|---|---|
| public BaseAttributeFilter(String name) Construct a new filter that accepts only the specified attribute name.
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String name) Add a new attribute name to the set of names accepted by this filter.
| |
| clear | back to summary |
|---|---|
| public void clear() Clear all accepted names from this filter, so that it will accept all attribute names. | |
| getNames | back to summary |
|---|---|
| public String[] getNames() Return the set of names that are accepted by this filter. If this filter accepts all attribute names, a zero length array will be returned.
| |
| isNotificationEnabled | back to summary |
|---|---|
| public boolean isNotificationEnabled(Notification notification) Implements javax. Test whether notification enabled for this event. Return true if:
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Remove an attribute name from the set of names accepted by this filter.
| |