|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.AbstractLifeCycle
org.apache.logging.log4j.core.filter.AbstractFilterable
public abstract class AbstractFilterable
Enhances a Class by allowing it to contain Filters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle |
---|
LifeCycle.State |
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.AbstractLifeCycle |
---|
LOGGER |
Constructor Summary | |
---|---|
protected |
AbstractFilterable()
|
protected |
AbstractFilterable(Filter filter)
|
Method Summary | |
---|---|
void |
addFilter(Filter filter)
Adds a filter. |
Filter |
getFilter()
Returns the Filter. |
boolean |
hasFilter()
Determines if a Filter is present. |
boolean |
isFiltered(LogEvent event)
Determine if the LogEvent should be processed or ignored. |
void |
removeFilter(Filter filter)
Removes a Filter. |
void |
start()
Make the Filter available for use. |
void |
stop()
Cleanup the Filter. |
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle |
---|
equalsImpl, getState, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.logging.log4j.core.LifeCycle |
---|
getState, isStarted, isStopped |
Constructor Detail |
---|
protected AbstractFilterable(Filter filter)
protected AbstractFilterable()
Method Detail |
---|
public Filter getFilter()
getFilter
in interface Filterable
public void addFilter(Filter filter)
addFilter
in interface Filterable
filter
- The Filter to add.public void removeFilter(Filter filter)
removeFilter
in interface Filterable
filter
- The Filter to remove.public boolean hasFilter()
hasFilter
in interface Filterable
public void start()
start
in interface LifeCycle
start
in class AbstractLifeCycle
public void stop()
stop
in interface LifeCycle
stop
in class AbstractLifeCycle
public boolean isFiltered(LogEvent event)
isFiltered
in interface Filterable
event
- The LogEvent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.