org.apache.cxf.management.web.logging.atom
Class AbstractAtomBean

java.lang.Object
  extended by org.apache.cxf.management.web.logging.atom.AbstractAtomBean
Direct Known Subclasses:
AtomPullServer, AtomPushBean

public abstract class AbstractAtomBean
extends Object


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

AbstractAtomBean

public AbstractAtomBean()
Creates unconfigured and uninitialized bean. To configure setters must be used, then init() must be called.

Method Detail

setBus

public void setBus(org.apache.cxf.Bus bus)

getBus

public org.apache.cxf.Bus getBus()

setLoggers

public void setLoggers(String loggers)
Set one or more loggers and levels descriptor.
Parsed input syntax is:
 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


setLogger

public void setLogger(String logger)
Name of logger to associate with ATOM push handler; empty string for root logger.


setLevel

public void setLevel(String level)
Name of level that logger will use publishing log events to ATOM push handler; empty string for default "INFO" level.


init

public void init()
Initializes bean; creates ATOM handler based on current properties state, and attaches handler to logger(s).


createHandler

protected abstract Handler createHandler()

checkInit

protected void checkInit()

getLoggers

protected List<AbstractAtomBean.LoggerLevel> getLoggers()


Apache CXF