|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jetrix.filter.FilterManager
public class FilterManager
Manages channel filters. Filter instances are obtained by calling the getFilter() method. The FilterManager is in charge to serve a new instance of the filter or the same unique instance depending on the type of the filter (static or not).
Method Summary | |
---|---|
void |
addFilterAlias(String name,
String classname)
Defines a new alias for a filter. |
MessageFilter |
getFilter(String classname)
Returns a filter of the specified class. |
Map<String,String> |
getFilterAliases()
Return the map of filter aliases |
MessageFilter |
getFilterByName(String name)
Returns a filter matching the specified name. |
static FilterManager |
getInstance()
Returns the instance of the FilterManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FilterManager getInstance()
public MessageFilter getFilter(String classname) throws FilterException
classname
- Classname of the filter to return
FilterException
public MessageFilter getFilterByName(String name) throws FilterException
name
- name of the filter to return
FilterException
public void addFilterAlias(String name, String classname)
name
- alias of the filterclassname
- class of the filterpublic Map<String,String> getFilterAliases()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |