|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.management.web.logging.atom.AbstractAtomBean
public abstract class AbstractAtomBean
| Nested Class Summary | |
|---|---|
protected static class |
AbstractAtomBean.LoggerLevel
|
| Constructor Summary | |
|---|---|
AbstractAtomBean()
Creates unconfigured and uninitialized bean. |
|
| Method Summary | |
|---|---|
protected void |
checkInit()
|
protected abstract Handler |
createHandler()
|
org.apache.cxf.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(org.apache.cxf.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAtomBean()
init()
must be called.
| Method Detail |
|---|
public void setBus(org.apache.cxf.Bus bus)
public org.apache.cxf.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||