org.objectweb.jorm.metainfo.memory
Class BasicMemoryMappingFactory
java.lang.Object
|
+--org.objectweb.jorm.metainfo.memory.BasicMemoryMappingFactory
- All Implemented Interfaces:
- Loggable, MappingFactory, java.io.Serializable
- public class BasicMemoryMappingFactory
- extends java.lang.Object
- implements MappingFactory, Loggable, java.io.Serializable
- See Also:
- Serialized Form
|
Field Summary |
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected org.objectweb.util.monolog.api.LoggerFactory |
loggerFactory
|
|
Method Summary |
ClassMapping |
createClassMapping(java.lang.String mapperName,
java.lang.String mappingName,
MetaObject parent)
Creates a ClassMapping object from the current factory. |
ValueMapping |
createValueMapping(java.lang.String mapperName,
java.lang.String mappingName,
MetaObject parent)
Creates a ValueMapping object from the current factory. |
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 |
init()
Initializes the current factory. |
void |
setLogger(org.objectweb.util.monolog.api.Logger l)
Assigns a logger to an component that wants to log things. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.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 |
logger
protected org.objectweb.util.monolog.api.Logger logger
loggerFactory
protected org.objectweb.util.monolog.api.LoggerFactory loggerFactory
BasicMemoryMappingFactory
public BasicMemoryMappingFactory()
createValueMapping
public ValueMapping createValueMapping(java.lang.String mapperName,
java.lang.String mappingName,
MetaObject parent)
- Creates a ValueMapping object from the current factory.
This object is created with a mapper name, a mapping name and its
futur parent.
- Specified by:
createValueMapping in interface MappingFactory
- Parameters:
mapperName - the name of the mappermappingName - the name of the mapping- Returns:
- a ValueMapping object
createClassMapping
public ClassMapping createClassMapping(java.lang.String mapperName,
java.lang.String mappingName,
MetaObject parent)
- Creates a ClassMapping object from the current factory.
This object is created with a mapper name, a mapping name and its
futur parent.
- Specified by:
createClassMapping in interface MappingFactory
- Parameters:
mapperName - the name of the mappermappingName - the name of the mapping- Returns:
- a ClassMapping object
init
public void init()
- Initializes the current factory.
- Specified by:
init in interface MappingFactory
getLogger
public org.objectweb.util.monolog.api.Logger getLogger()
- Description copied from interface:
Loggable
- Returns a logger to an component that wants to log things.
- Specified by:
getLogger in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
logger - the logger object
getLoggerFactory
public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
- Description copied from interface:
Loggable
- Returns a logger factory that allows the creation of new loggers.
- Specified by:
getLoggerFactory in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers
setLogger
public void setLogger(org.objectweb.util.monolog.api.Logger l)
- Description copied from interface:
Loggable
- Assigns a logger to an component that wants to log things.
- Specified by:
setLogger in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
logger - the logger object
setLoggerFactory
public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory lf)
- Description copied from interface:
Loggable
- Assigns a logger factory that allows the creation of new loggers.
- Specified by:
setLoggerFactory in interface Loggable
- Following copied from interface:
org.objectweb.jorm.util.api.Loggable
- Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers