org.objectweb.jorm.util.api
Interface Loggable

All Known Subinterfaces:
JormCompilerParameter
All Known Implementing Classes:
BasicDomParser, BasicDomtreeBuilder, BasicDomWriter, BasicMappingDomtreeBuilder, BasicMetaObject, CommonGenerator, CommonHelper, DirJavaExplorer, DTDResolver, FosMOPFactory, GenClassMapping, JormCompilerParameterImpl, JormGenerator, JormVerifier, KFPNCManager, Mapper, ParserHelper, RdbMOPFactory

public interface Loggable

The interface Loggable must be implemented by all objects which want to log something.

Author:
P. Dechamboux

Method Summary
 Logger getLogger()
          Returns a logger to an component that wants to log things.
 LoggerFactory getLoggerFactory()
          Returns a logger factory that allows the creation of new loggers.
 void setLogger(Logger logger)
          Assigns a logger to an component that wants to log things.
 void setLoggerFactory(LoggerFactory loggerfactory)
          Assigns a logger factory that allows the creation of new loggers.
 

Method Detail

getLogger

public Logger getLogger()
Returns a logger to an component that wants to log things.


getLoggerFactory

public LoggerFactory getLoggerFactory()
Returns a logger factory that allows the creation of new loggers.


setLogger

public void setLogger(Logger logger)
Assigns a logger to an component that wants to log things.

Parameters:
logger - the logger object

setLoggerFactory

public void setLoggerFactory(LoggerFactory loggerfactory)
Assigns a logger factory that allows the creation of new loggers.

Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers