public class FixedNotificationFilter extends Object implements NotificationFilter
Constructor and Description |
---|
FixedNotificationFilter(String[] names)
Construct a new filter that accepts only the specified notification
names.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getNames()
Return the set of names that are accepted by this filter.
|
boolean |
isNotificationEnabled(Notification notification)
Test whether notification enabled for this event.
|
public FixedNotificationFilter(String[] names)
names
- Names of the notification typespublic String[] getNames()
public boolean isNotificationEnabled(Notification notification)
Test whether notification enabled for this event. Return true if:
isNotificationEnabled
in interface NotificationFilter
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.