org.objectweb.jorm.mapper.fos.generator
Class FosMOPFactory

java.lang.Object
  extended byorg.objectweb.jorm.mapper.fos.generator.FosMOPFactory
All Implemented Interfaces:
Loggable, MOPFactory

public class FosMOPFactory
extends java.lang.Object
implements MOPFactory, Loggable

Author:
P. Dechamboux

Constructor Summary
FosMOPFactory()
           
 
Method Summary
 MOP createMappingMOP(JormCompilerParameter cp, java.lang.String mappername)
          This method must return a new instance of a MappingMOP
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FosMOPFactory

public FosMOPFactory()
Method Detail

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 logger)
Description copied from interface: Loggable
Assigns a logger to an component that wants to log things.

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

setLoggerFactory

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

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

createMappingMOP

public MOP createMappingMOP(JormCompilerParameter cp,
                            java.lang.String mappername)
                     throws PException
This method must return a new instance of a MappingMOP

Specified by:
createMappingMOP in interface MOPFactory
Throws:
PException