|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Rule evaluates to true of false given a LoggingEvent object, and can notify listeners when the underlying implementation of this Rule has it's criteria changed by using the standard PropertyChangeListener infrastructure.
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance, which is notified when underlying Rule information has changed. |
boolean |
evaluate(LoggingEvent e)
Returns true if this implementation of the rule accepts the LoggingEvent, or false if not. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a known PropertyChangeListener from this Rule. |
Method Detail |
public boolean evaluate(LoggingEvent e)
What True/False means can be client-specific.
e
- LoggingEvent this instance will evaluate
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
listener
-
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |