Package ch.qos.logback.core.spi
Class FilterAttachableImpl<E>
java.lang.Object
ch.qos.logback.core.spi.FilterAttachableImpl<E>
- All Implemented Interfaces:
FilterAttachable<E>
Implementation of FilterAttachable.
- Author:
- Ceki Gülcü
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a filter to end of the filter list.void
Clear the filter chainGet a copy of all the filters contained within this FilterAttachable object.getFilterChainDecision
(E event) Loop through the filters in the list.
-
Constructor Details
-
FilterAttachableImpl
public FilterAttachableImpl()
-
-
Method Details
-
addFilter
Add a filter to end of the filter list.- Specified by:
addFilter
in interfaceFilterAttachable<E>
-
clearAllFilters
Clear the filter chain- Specified by:
clearAllFilters
in interfaceFilterAttachable<E>
-
getFilterChainDecision
Loop through the filters in the list. As soon as a filter decides on ACCEPT or DENY, then that value is returned. If all of the filters return NEUTRAL, then NEUTRAL is returned.- Specified by:
getFilterChainDecision
in interfaceFilterAttachable<E>
-
getCopyOfAttachedFiltersList
Description copied from interface:FilterAttachable
Get a copy of all the filters contained within this FilterAttachable object.- Specified by:
getCopyOfAttachedFiltersList
in interfaceFilterAttachable<E>
- Returns:
- all attached filters as a list
-