Class AbstractFilterFactory<T extends Filter>
- java.lang.Object
-
- org.opennms.netmgt.measurements.filters.impl.AbstractFilterFactory<T>
-
- All Implemented Interfaces:
FilterFactory
- Direct Known Subclasses:
ChompFactory
,DerivativeFactory
,HWForecastFactory
,JEXLFactory
,OutlierFilterFactory
,PercentileFactory
,TrendLineFactory
public abstract class AbstractFilterFactory<T extends Filter> extends java.lang.Object implements FilterFactory
Helps automate the creation ofFilter
objects using the annotated parameters.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description AbstractFilterFactory(java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
getFilter(FilterDef filterDef)
Retrieves the appropriateFilter
for the given configuration.java.lang.Class<T>
getFilterType()
Retrieves a reference to the associatedFilter
type.
-
-
-
Constructor Detail
-
AbstractFilterFactory
public AbstractFilterFactory(java.lang.Class<T> type)
-
-
Method Detail
-
getFilterType
public java.lang.Class<T> getFilterType()
Description copied from interface:FilterFactory
Retrieves a reference to the associatedFilter
type.- Specified by:
getFilterType
in interfaceFilterFactory
- Returns:
- the filter configuration
-
getFilter
public Filter getFilter(FilterDef filterDef)
Description copied from interface:FilterFactory
Retrieves the appropriateFilter
for the given configuration.- Specified by:
getFilter
in interfaceFilterFactory
- Parameters:
filterDef
- a filter definition- Returns:
- null if this factory doesn't support the filter in question
-
-