org.jcoderz.commons.logging
Class BusinessImpactFilter
java.lang.Object
org.jcoderz.commons.logging.BusinessImpactFilter
- All Implemented Interfaces:
- Filter
public class BusinessImpactFilter
- extends Object
- implements Filter
This filter is used for filtering log messages according to the business
impact.
|
Constructor Summary |
BusinessImpactFilter(List impacts)
Creates a new instance of this and sets the business impacts, which will
pass this filter. |
|
Method Summary |
boolean |
isPassable(LogItem entry)
Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessImpactFilter
public BusinessImpactFilter(List impacts)
- Creates a new instance of this and sets the business impacts, which will
pass this filter. All business impacts within the supplied list must be
given in their textual representation.
- Parameters:
impacts - The list storing passable business impacts in their textual
representation.
isPassable
public boolean isPassable(LogItem entry)
- Returns flag whether the filter lets the log file entry pass, i.e. the
entry matches the filter criteria.
- Specified by:
isPassable in interface Filter
- Parameters:
entry - The entry to check.
- Returns:
- true, if
entry passes the filter; false, else.
Copyright 2007 The jCoderZ Project.