org.objectweb.jorm.util.api
Interface Loggable

All Known Subinterfaces:
CompilerParameter
All Known Implementing Classes:
BasicClass, BasicClassMapping, BasicClassRef, BasicCompilerParameter, BasicCompositeName, BasicFieldName, BasicFileMappingFactory, BasicFosMappingFactory, BasicFosMappingFactory, BasicGenClass, BasicGenClassRef, BasicManager, BasicMemoryMappingFactory, BasicMemoryMappingFactory, BasicNameDef, BasicNameRef, BasicPrimitiveElement, BasicSchema, BasicValueMapping, Collection, CommandLineParser, CommonHelper, FileParser, FosBindingMOP, FosMappingMOP, GenClassMapping, JormGeneratorImpl, ManagerImpl, Mapper, ObjectGenerator, RdbMapperOption, SetElem, BasicVerifier, FileVerifier, RdbVerifier, MemoryVerifier, FosVerifier, ProxyParser, DTDResolver, BasicDomParser, FosParser, RDBParser, MemoryParser, FosParser, MemoryParser, RDBParser

public interface Loggable

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

Author:
X. Spengler

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

Method Detail

getLogger

public org.objectweb.util.monolog.api.Logger getLogger()
Returns a logger to an component that wants to log things.
Parameters:
logger - the logger object

getLoggerFactory

public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
Returns a logger factory that allows the creation of new loggers.
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers

setLogger

public void setLogger(org.objectweb.util.monolog.api.Logger logger)
Assigns a logger to an component that wants to log things.
Parameters:
logger - the logger object

setLoggerFactory

public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerfactory)
Assigns a logger factory that allows the creation of new loggers.
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers