Package com.jalios.jcms.context
Class LevelSelector
- java.lang.Object
-
- com.jalios.jcms.context.LevelSelector
-
- All Implemented Interfaces:
JcmsMessageSelector
public class LevelSelector extends java.lang.Object implements JcmsMessageSelector
Select aJcmsMessage
by its level.- Author:
- ludovic
-
-
Field Summary
Fields Modifier and Type Field Description static LevelSelector
ERROR
static LevelSelector
INFO
static LevelSelector
SUCCESS
static LevelSelector
WARN
-
Constructor Summary
Constructors Constructor Description LevelSelector(JcmsMessage.Level level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JcmsMessage.Level
getLevel()
boolean
isSelected(JcmsMessage msg)
void
setLevel(JcmsMessage.Level level)
-
-
-
Field Detail
-
SUCCESS
public static LevelSelector SUCCESS
-
INFO
public static LevelSelector INFO
-
WARN
public static LevelSelector WARN
-
ERROR
public static LevelSelector ERROR
-
-
Constructor Detail
-
LevelSelector
public LevelSelector(JcmsMessage.Level level)
-
-
Method Detail
-
isSelected
public boolean isSelected(JcmsMessage msg)
- Specified by:
isSelected
in interfaceJcmsMessageSelector
-
getLevel
public JcmsMessage.Level getLevel()
-
setLevel
public void setLevel(JcmsMessage.Level level)
-
-