|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.JormManager
Implementation object of the Manager interface. This interface defines methods to create or find objects which construct the meta information from the description files. This object is managed by the parser system.
| Field Summary | |
protected Logger |
logger
a simple logger to log |
protected LoggerFactory |
loggerFactory
a logger factory to create other loggers if needed |
protected java.util.Map |
mappingFactories
this structure defines all the mapping factories declared in the meta information manager. |
protected java.util.Map |
packages
this structure defines all declared schema in the current manager. |
protected PTypeSpace |
ptypeSpace
TBD |
| Constructor Summary | |
JormManager()
|
|
| Method Summary | |
void |
addMappingFactory(java.lang.String mapperName,
MappingFactory factory)
Adds a mapping factory to the current metainformation manager. |
Class |
createClass(java.lang.String fqclassName)
|
CompositeName |
createCompositeName(java.lang.String fqcompositeNameName)
|
Package |
createPackage(java.lang.String schemaName)
Returns a new schema. |
Class |
getClass(java.lang.String className)
searches a class into all the declared schemas and returns it. |
java.util.Collection |
getClasses()
build an iterator to iterates all classes of the meta-info |
CompositeName |
getCompositeName(java.lang.String fqcompositeNameName)
|
java.util.Collection |
getCompositeNames()
build an iterator to iterates all classes of the meta-info |
java.util.Collection |
getJormObjects()
|
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. |
java.util.Collection |
getMappingFactories()
|
MappingFactory |
getMappingFactory(java.lang.String mapperName)
Returns a mapping factory corresponding to a mapper name. |
Package |
getPackage(java.lang.String schemaName)
Returns an existing schema. |
java.util.Collection |
getPackages()
Allows to know all the declared schemas into the current metainformation manager. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
PTypeSpace |
getPTypeSpace()
TBD |
void |
init()
Initializes the current Manager. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerFactory)
Defines the logger factory to obtain new logger. |
void |
setParent(MetaObject itsParent)
Set the parent of the current meta object if it is not yet done by the constructor of the meta object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map packages
protected java.util.Map mappingFactories
protected transient Logger logger
protected transient LoggerFactory loggerFactory
protected PTypeSpace ptypeSpace
| Constructor Detail |
public JormManager()
| Method Detail |
public void init()
init in interface Managerpublic Package getPackage(java.lang.String schemaName)
getPackage in interface ManagerschemaName - the name of the schema
public Package createPackage(java.lang.String schemaName)
createPackage in interface ManagerschemaName - the name of the schema
public java.util.Collection getPackages()
getPackages in interface Manager
public void addMappingFactory(java.lang.String mapperName,
MappingFactory factory)
addMappingFactory in interface ManagermapperName - the name of the mapper (i.e: OR for rdb)factory - the mapping factory to add to the list of
existing mapping factoriespublic MappingFactory getMappingFactory(java.lang.String mapperName)
getMappingFactory in interface ManagermapperName - the name of the mapper to obtain
public java.util.Collection getMappingFactories()
getMappingFactories in interface Managerpublic PTypeSpace getPTypeSpace()
getPTypeSpace in interface Managerpublic java.util.Collection getClasses()
getClasses in interface Managerpublic java.util.Collection getCompositeNames()
getCompositeNames in interface Managerpublic java.util.Collection getJormObjects()
getJormObjects in interface Managerpublic Class getClass(java.lang.String className)
getClass in interface ManagerclassName - the name of the class to search
public Class createClass(java.lang.String fqclassName)
createClass in interface Managerpublic CompositeName getCompositeName(java.lang.String fqcompositeNameName)
getCompositeName in interface Managerpublic CompositeName createCompositeName(java.lang.String fqcompositeNameName)
createCompositeName in interface Managerpublic MetaObject getParent()
getParent in interface MetaObjectpublic void setParent(MetaObject itsParent)
setParent in interface MetaObjectitsParent - the parent MetaObject of the current objectpublic void setLogger(Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger in interface Loggablepublic LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory in interface Loggable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||