public abstract class AbstractAtomBean extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAtomBean.LoggerLevel |
| Constructor and Description |
|---|
AbstractAtomBean()
Creates unconfigured and uninitialized bean.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkInit() |
protected abstract Handler |
createHandler() |
Bus |
getBus() |
protected List<AbstractAtomBean.LoggerLevel> |
getLoggers() |
void |
init()
Initializes bean; creates ATOM handler based on current properties state, and attaches handler to
logger(s).
|
void |
setBus(Bus bus) |
void |
setLevel(String level)
Name of level that logger will use publishing log events to ATOM push handler; empty string for default
"INFO" level.
|
void |
setLogger(String logger)
Name of logger to associate with ATOM push handler; empty string for root logger.
|
void |
setLoggers(String loggers)
Set one or more loggers and levels descriptor.
|
public AbstractAtomBean()
init()
must be called.public void setBus(Bus bus)
public Bus getBus()
public void setLoggers(String loggers)
loggers := <logger>(<separator><logger>)* logger := <name>[":"<level>] separator := "," | " " | "\n"Examples:
Two loggers and two levels:
org.apache.cxf:INFO, org.apache.cxf.jaxrs:DEBUG
Three loggers, first with default "INFO" level:
org.apache.cxf, org.apache.cxf.jaxrs:DEBUG, namedLogger:ERROR
One logger with default "INFO" level:
org.apache.cxf
public void setLogger(String logger)
public void setLevel(String level)
public void init()
protected abstract Handler createHandler()
protected void checkInit()
protected List<AbstractAtomBean.LoggerLevel> getLoggers()
Apache CXF