org.objectweb.jorm.mapper.fos.metainfo
Class FosMappingFactory

java.lang.Object
  |
  +--org.objectweb.jorm.mapper.fos.metainfo.FosMappingFactory
All Implemented Interfaces:
Loggable, MappingFactory, java.io.Serializable

public class FosMappingFactory
extends java.lang.Object
implements MappingFactory, Loggable, java.io.Serializable

Author:
P. Dechamboux
See Also:
Serialized Form

Field Summary
protected  Logger logger
           
protected  LoggerFactory loggerFactory
           
 
Constructor Summary
FosMappingFactory()
           
 
Method Summary
 Mapping createMapping(java.lang.String mapperName, MetaObject parent)
          Creates a new BasicFosMapping object.
 MappingPrinter createMappingPrinter()
           
 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 l)
          Assigns a logger to an component that wants to log things.
 void setLoggerFactory(LoggerFactory lf)
          Assigns a logger factory that allows the creation of new loggers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Logger logger

loggerFactory

protected transient LoggerFactory loggerFactory
Constructor Detail

FosMappingFactory

public FosMappingFactory()
Method Detail

createMapping

public Mapping createMapping(java.lang.String mapperName,
                             MetaObject parent)
Creates a new BasicFosMapping object.

Specified by:
createMapping in interface MappingFactory
Parameters:
mapperName - the name of the mapper, parent the parent object.
parent - the parent MO of the mapping
Returns:
a new RdbMapping object.

createMappingPrinter

public MappingPrinter createMappingPrinter()
Specified by:
createMappingPrinter in interface MappingFactory

getLogger

public Logger getLogger()
Description copied from interface: Loggable
Returns a logger to an component that wants to log things.

Specified by:
getLogger in interface Loggable

getLoggerFactory

public LoggerFactory getLoggerFactory()
Description copied from interface: Loggable
Returns a logger factory that allows the creation of new loggers.

Specified by:
getLoggerFactory in interface Loggable

setLogger

public void setLogger(Logger l)
Description copied from interface: Loggable
Assigns a logger to an component that wants to log things.

Specified by:
setLogger in interface Loggable
Parameters:
l - the logger object

setLoggerFactory

public void setLoggerFactory(LoggerFactory lf)
Description copied from interface: Loggable
Assigns a logger factory that allows the creation of new loggers.

Specified by:
setLoggerFactory in interface Loggable
Parameters:
lf - the LoggerFactory object to obtain new loggers