|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.metainfo.lib.BasicManager
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 BasicClassLoader |
classLoader
the unique classloader in jorm compilation part to dynamicaly load classes (for mapping factories). |
protected org.objectweb.util.monolog.api.Logger |
logger
a simple logger to log |
protected org.objectweb.util.monolog.api.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 PTypeSpace |
ptypeSpace
TBD |
protected java.util.Map |
schemas
this structure defines all declared schema in the current manager. |
| Constructor Summary | |
BasicManager()
|
|
| Method Summary | |
void |
addMappingFactory(java.lang.String mapperName,
java.lang.String mappingFactory)
Adds a mapping factory to the current metainformation manager. |
Schema |
createSchema(java.lang.String schemaName)
Returns a new schema. |
java.util.Iterator |
getAllClassIterator()
build an iterator to iterates all classes of the meta-info |
Class |
getClass(java.lang.String className)
searches a class into all the declared schemas and returns it. |
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. |
MappingFactory |
getMappingFactory(java.lang.String mapperName)
Returns a mapping factory corresponding to a mapper name. |
MetaObject |
getParent()
Allows to know the parent MetaObject of the current MetaObject. |
PTypeSpace |
getPTypeSpace()
TBD |
Schema |
getSchema(java.lang.String schemaName)
Returns an existing schema. |
void |
init()
Initializes the current Manager with no specific classloader |
void |
init(BasicClassLoader classloader)
Deprecated. Basic ClassLoader is not a classloader. Need refactoring (Christophe Ney) |
java.util.Iterator |
iterateSchema()
Allows to know all the declared schemas into the current metainformation manager. |
void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
Defines a logger object. |
void |
setLoggerFactory(org.objectweb.util.monolog.api.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 schemas
protected java.util.Map mappingFactories
protected transient BasicClassLoader classLoader
protected transient org.objectweb.util.monolog.api.Logger logger
protected transient org.objectweb.util.monolog.api.LoggerFactory loggerFactory
protected PTypeSpace ptypeSpace
| Constructor Detail |
public BasicManager()
| Method Detail |
public void init(BasicClassLoader classloader)
init in interface Managerclassloader - a single class loader to load class into the
meta informationpublic void init()
init in interface Managerpublic Schema getSchema(java.lang.String schemaName)
getSchema in interface ManagerschemaName - the name of the schemapublic Schema createSchema(java.lang.String schemaName)
createSchema in interface ManagerschemaName - the name of the schemapublic java.util.Iterator iterateSchema()
iterateSchema in interface Manager
public void addMappingFactory(java.lang.String mapperName,
java.lang.String mappingFactory)
addMappingFactory in interface ManagermapperName - the name of the mapper (i.e: OR for rdb)mappingFactory - 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 obtainpublic Class getClass(java.lang.String className)
getClass in interface ManagerclassName - the name of the class to searchpublic PTypeSpace getPTypeSpace()
getPTypeSpace 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(org.objectweb.util.monolog.api.Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
setLoggerFactory in interface LoggableloggerFactory - the LoggerFactory object to obtain a logger objectpublic org.objectweb.util.monolog.api.Logger getLogger()
LoggablegetLogger in interface Loggableorg.objectweb.jorm.util.api.Loggablelogger - the logger objectpublic org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
LoggablegetLoggerFactory in interface Loggableorg.objectweb.jorm.util.api.Loggableloggerfactory - the LoggerFactory object to obtain new loggerspublic java.util.Iterator getAllClassIterator()
getAllClassIterator in interface Manager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||