Top Description Fields Constructors Methods
org.jboss.logmanager.filters

public final Class AllFilter

extends Object
implements Filter
Class Inheritance
All Implemented Interfaces
java.util.logging.Filter
Imports
java.util.Iterator, java.util.logging.Filter, .LogRecord

A filter consisting of several filters in a chain. If any filter finds the log message to be unloggable, the message will not be logged and subsequent filters will not be checked. If there are no nested filters, this instance always returns true.

Field Summary

Modifier and TypeField and Description
private final Filter[]

Constructor Summary

AccessConstructor and Description
public
AllFilter(final Filter[]
the constituent filters
filters
)

Construct a new instance.

public
AllFilter(final Iterable<Filter>
the constituent filters
filters
)

Construct a new instance.

public
AllFilter(final Iterator<Filter>
the constituent filters
filters
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if all the constituent filters return true
isLoggable
(final LogRecord
the log record
record
)

Implements java.util.logging.Filter.isLoggable.

Determine whether the record is loggable.

private static Filter[]
unroll(Iterator<Filter> iter, int cnt)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filtersback to summary
private final Filter[] filters

Constructor Detail

AllFilterback to summary
public AllFilter(final Filter[] filters)

Construct a new instance.

Parameters
filters:Filter[]

the constituent filters

AllFilterback to summary
public AllFilter(final Iterable<Filter> filters)

Construct a new instance.

Parameters
filters:Iterable<Filter>

the constituent filters

AllFilterback to summary
public AllFilter(final Iterator<Filter> filters)

Construct a new instance.

Parameters
filters:Iterator<Filter>

the constituent filters

Method Detail

isLoggableback to summary
public boolean isLoggable(final LogRecord record)

Implements java.util.logging.Filter.isLoggable.

Determine whether the record is loggable.

Parameters
record:LogRecord

the log record

Returns:boolean

true if all the constituent filters return true

unrollback to summary
private static Filter[] unroll(Iterator<Filter> iter, int cnt)