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

public final Class AnyFilter

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 loggable, the message will be logged and subsequent filters will not be checked. If there are no nested filters, this instance always returns false.

Field Summary

Modifier and TypeField and Description
private final Filter[]

Constructor Summary

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

Construct a new instance.

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

Construct a new instance.

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

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if any of 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

AnyFilterback to summary
public AnyFilter(final Filter[] filters)

Construct a new instance.

Parameters
filters:Filter[]

the constituent filters

AnyFilterback to summary
public AnyFilter(final Iterable<Filter> filters)

Construct a new instance.

Parameters
filters:Iterable<Filter>

the constituent filters

AnyFilterback to summary
public AnyFilter(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 any of the constituent filters return true

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