|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.logging.LoggerFactoryImpl
Default implementation of a LoggerFactory
. The default
implementation holds an internal Map of Loggers.
Constructor Summary | |
LoggerFactoryImpl()
|
Method Summary | |
Logger |
getLogger(java.lang.String pName)
Returns a Logger with the name pName .
|
abstract Logger |
newLogger(java.lang.String pName)
Creates a new Logger with the given name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoggerFactoryImpl()
Method Detail |
public abstract Logger newLogger(java.lang.String pName)
Creates a new Logger
with the given name. The logger
will be added to an internal Map
and the next call to
getLogger(String)
with the same name will return
this Logger
.
public Logger getLogger(java.lang.String pName)
Returns a Logger
with the name pName
.
If the internal Map
of loggers already contains a Logger
with name pName
, returns that one. Otherwise creates
a new instance by calling newLogger(String)
, stores
the instance in the internal Map
and returns it.
getLogger
in interface LoggerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |