|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.naming.lib.KFPNCManager
Is a manager of FKPNC instances. It is in charge of the initialization of the couple (binder, key) into KFPNC. This manager keeps an association table between the class name of the root inheritance tree, and the KFPNC instance.
Constructor Summary | |
KFPNCManager()
|
|
KFPNCManager(java.util.Map cn2pnc)
|
Method Summary | |
void |
classMapped(ClassMappedEvent e)
If the class is a root of an inheritance class tree, a KFPNC is created. |
void |
clean()
Clean the internal structures to forget classes loaded previously. |
KeyFilteredNamingContext |
getKFPNC(java.lang.String className)
|
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 |
mappingRequired(PMappingRequiredEvent e)
Signlas to this listener that the mapper requires a particular JORM class to be mapped. |
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 |
public KFPNCManager()
public KFPNCManager(java.util.Map cn2pnc)
Method Detail |
public KeyFilteredNamingContext getKFPNC(java.lang.String className)
public void clean()
public void mappingRequired(PMappingRequiredEvent e)
PMapperListener
mappingRequired
in interface PMapperListener
e
- The event that signals that a particular JORM class is required
to be mapped by the mapper.public void classMapped(ClassMappedEvent e)
classMapped
in interface PMapperListener
e
- contains the class name of the persistent class. The source of
the event is the mapper.public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
public void setLoggerFactory(LoggerFactory loggerFactory)
Loggable
setLoggerFactory
in interface Loggable
loggerFactory
- the LoggerFactory object to obtain new loggerspublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public void setLogger(Logger logger)
Loggable
setLogger
in interface Loggable
logger
- the logger object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |