|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.jorm.MapperManager
public class MapperManager
This class manages Jorm mappers. A mapper can be registered for each data source (connection factory) used in each EJB container. The Mapper manager provides also the JormConfigurator instance used to configure Jorm.
Constructor Summary | |
---|---|
protected |
MapperManager()
|
Method Summary | |
---|---|
org.objectweb.jorm.api.PMapper |
addMapper(org.objectweb.jorm.api.PMapper m,
JContainer c,
java.lang.Object cf)
Register and start PMapper for a container and a connection factory if another mapper is not registered with the same container and the same connection factory. |
static MapperManager |
getInstance()
It retrieves the unique instance of MapperManager. |
org.objectweb.jorm.api.JormConfigurator |
getJormConfigurator()
|
org.objectweb.util.monolog.api.Logger |
getLogger()
|
org.objectweb.jorm.api.PMapper |
getMapper(JContainer c,
java.lang.Object cf)
Lookup a jorm mapper for a given container and a given connection factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MapperManager()
Method Detail |
---|
public static MapperManager getInstance()
public org.objectweb.jorm.api.PMapper getMapper(JContainer c, java.lang.Object cf)
c
- is the container asking the mappercf
- is the connection factory (datasource for example) represented
by the expected mapper.
public org.objectweb.jorm.api.PMapper addMapper(org.objectweb.jorm.api.PMapper m, JContainer c, java.lang.Object cf) throws org.objectweb.jorm.api.PException
m
- the mapper to register (never null)c
- the container using the mapper (never null)cf
- the connection factory represented by the mapper (never null)
org.objectweb.jorm.api.PException
- if it is not possible to start the mapper.public org.objectweb.util.monolog.api.Logger getLogger()
public org.objectweb.jorm.api.JormConfigurator getJormConfigurator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |