|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.lib.JormConfiguratorImpl
Used to hold the configuration information related to the JORM runtime.
Field Summary | |
protected java.lang.ClassLoader |
loader
|
protected Logger |
logger
|
protected LoggerFactory |
loggerFactory
|
protected java.util.Properties |
logProperties
|
protected java.util.HashMap |
mappers
|
protected java.lang.String |
pathToJormcOpts
|
protected java.util.Properties |
properties
|
Fields inherited from interface org.objectweb.jorm.api.JormConfigurator |
DEFAULT_JORM_CONFIGURATION_FILE, LOGGER_NAME, USE_CONTEXT_CLASSLOADER |
Constructor Summary | |
JormConfiguratorImpl()
|
Method Summary | |
void |
addSubMapper(java.lang.String mn,
java.lang.String smn)
Adds this submapper to the list of the ones used for generation. |
void |
configure()
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM using the default property file. |
void |
configure(java.util.Properties p)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM. |
void |
configure(java.lang.String propertyfile)
Configures the JORM compiler by loading information related to the different mappers supported by this instance of JORM. |
void |
configureLog(java.lang.String propertyfile)
Configures the logger factory object with a properties object. |
void |
configureMIManager(Manager miman)
Configures the MI manager associated with either a JORM compiler or a simple mapper. |
void |
configureParser(Parser parser,
java.util.ArrayList dtdlocs,
PathExplorer pe,
Manager miman)
Configures the parser associated with either a JORM compiler or a simple mapper. |
java.lang.Class |
getGcmClass(java.lang.String mappername)
Gets the class name of the GenClassMapping associated with the given mapper. |
LoggerFactory |
getLoggerFactory()
Gets the logger factory associated with this instance of JORM. |
MappingDomtreeBuilder |
getMappingDomtreeBuilder(java.lang.String mappername)
Gets the MappingDomTreeBuilder object associated with the given mapper. |
MappingParser |
getMappingParser(java.lang.String mappername)
Gets the parser associated with the given mapper for mapping infos. |
MappingFactory |
getMIFactory(java.lang.String mappername)
Gets the MI factory associated with the given mapper. |
Manager |
getMIManager()
Gets the MI manager to be used by JORM. |
Parser |
getParser()
Gets the parser to be used by JORM. |
PMappingStructuresManager |
getSchMgr(java.lang.String mappername)
Gets the schema manager associated with the given mapper. |
java.util.Collection |
getSubMappers(java.lang.String mappername)
Gets the submappers associated with a given mapper. |
Writer |
getWriter()
Gets the BasicDomWriter object. |
java.util.Iterator |
knownMappers()
Lists the names of supported mappers. |
void |
removeAllMappers()
Removes all mappers from the list of the ones used for generation. |
void |
removeMapper(java.lang.String mn)
Removes this mapper from the list of the ones used for generation. |
void |
removeSubMapper(java.lang.String mn,
java.lang.String smn)
Removes this submapper from the list of the ones used for generation. |
void |
setLoggerFactory(LoggerFactory lf)
It assignes the logger factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Properties properties
protected java.util.Properties logProperties
protected java.lang.String pathToJormcOpts
protected java.util.HashMap mappers
protected LoggerFactory loggerFactory
protected Logger logger
protected java.lang.ClassLoader loader
Constructor Detail |
public JormConfiguratorImpl()
Method Detail |
public void configure(java.lang.String propertyfile) throws PException
configure
in interface JormConfigurator
PException
public void configure() throws PException
JormConfigurator
configure
in interface JormConfigurator
PException
public void configure(java.util.Properties p)
configure
in interface JormConfigurator
p
- is the properties containing the jorm configurationpublic void configureLog(java.lang.String propertyfile) throws PException
configureLog
in interface JormConfigurator
propertyfile
- a properties object
PException
public void configureMIManager(Manager miman) throws PException
configureMIManager
in interface JormConfigurator
miman
- The MI manager to be configured
PException
public void configureParser(Parser parser, java.util.ArrayList dtdlocs, PathExplorer pe, Manager miman) throws PException
configureParser
in interface JormConfigurator
parser
- The parser to be configureddtdlocs
- Possible locations of DTDspe
- Path explorer to be usedmiman
- The MI manager to be used by the parser
PException
public java.util.Iterator knownMappers() throws PException
knownMappers
in interface JormConfigurator
PException
public void setLoggerFactory(LoggerFactory lf)
setLoggerFactory
in interface JormConfigurator
lf
- public LoggerFactory getLoggerFactory() throws PException
getLoggerFactory
in interface JormConfigurator
PException
public Manager getMIManager() throws PException
getMIManager
in interface JormConfigurator
PException
public Parser getParser() throws PException
getParser
in interface JormConfigurator
PException
public MappingFactory getMIFactory(java.lang.String mappername) throws PException
getMIFactory
in interface JormConfigurator
mappername
- The name of the concerned mapper.
PException
public PMappingStructuresManager getSchMgr(java.lang.String mappername) throws PException
getSchMgr
in interface JormConfigurator
mappername
- The name of the concerned mapper.
PException
public java.lang.Class getGcmClass(java.lang.String mappername) throws PException
getGcmClass
in interface JormConfigurator
mappername
- The name of the concerned mapper.
PException
public MappingParser getMappingParser(java.lang.String mappername) throws PException
getMappingParser
in interface JormConfigurator
mappername
- The name of the concerned mapper.
PException
public Writer getWriter() throws PException
getWriter
in interface JormConfigurator
PException
public MappingDomtreeBuilder getMappingDomtreeBuilder(java.lang.String mappername) throws PException
getMappingDomtreeBuilder
in interface JormConfigurator
mappername
- The name of the concerned mapper.
PException
public java.util.Collection getSubMappers(java.lang.String mappername) throws PException
getSubMappers
in interface JormConfigurator
mappername
- The concerned mapper.
PException
public void removeMapper(java.lang.String mn)
removeMapper
in interface JormConfigurator
mn
- The name of the concerned mapper.public void removeAllMappers()
removeAllMappers
in interface JormConfigurator
public void removeSubMapper(java.lang.String mn, java.lang.String smn)
removeSubMapper
in interface JormConfigurator
mn
- The concerned mapper.smn
- The submapper to be removed.public void addSubMapper(java.lang.String mn, java.lang.String smn)
addSubMapper
in interface JormConfigurator
mn
- The concerned mapper.smn
- The submapper to be added.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |