org.objectweb.jorm.compiler.lib
Class JormCompilerConfiguratorImpl

java.lang.Object
  extended byorg.objectweb.jorm.lib.JormConfiguratorImpl
      extended byorg.objectweb.jorm.compiler.lib.JormCompilerConfiguratorImpl
All Implemented Interfaces:
JormCompilerConfigurator, JormConfigurator

public class JormCompilerConfiguratorImpl
extends JormConfiguratorImpl
implements JormCompilerConfigurator

Used to hold the configuration information related to a JORM compiler instance.

Author:
P. Dechamboux

Field Summary
 
Fields inherited from class org.objectweb.jorm.lib.JormConfiguratorImpl
loader, logger, loggerFactory, logProperties, mappers, pathToJormcOpts, properties
 
Fields inherited from interface org.objectweb.jorm.compiler.api.JormCompilerConfigurator
DEFAULT_JORM_CONFIGURATION_FILE, LOGGER_NAME, USE_CONTEXT_CLASSLOADER
 
Constructor Summary
JormCompilerConfiguratorImpl()
           
 
Method Summary
 Generator getGenerator()
          Gets the generator to be used by JORM.
 java.io.InputStream getGlobalJormcOptsFile()
          Gets an InputStream for reading the global compiler parameters.
 java.lang.String getJormcOptsFile()
          Gets the name to be used for the compiler options file.
 MappingVerifier getMappingVerifier(java.lang.String mappername)
          Gets the verifier associated with the given mapper.
 MOPFactory getMOPFactory(java.lang.String mappername)
          Gets the MOP factory associated with the given mapper.
 Verifier getVerifier()
          Gets the verifier to be used by JORM.
 void setLoggerFactory(LoggerFactory lf)
          It assignes the logger factory.
 
Methods inherited from class org.objectweb.jorm.lib.JormConfiguratorImpl
addSubMapper, configure, configure, configure, configureLog, configureMIManager, configureParser, getGcmClass, getLoggerFactory, getMappingDomtreeBuilder, getMappingParser, getMIFactory, getMIManager, getParser, getSchMgr, getSubMappers, getWriter, knownMappers, removeAllMappers, removeMapper, removeSubMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.api.JormConfigurator
addSubMapper, configure, configure, configure, configureLog, configureMIManager, configureParser, getGcmClass, getLoggerFactory, getMappingDomtreeBuilder, getMappingParser, getMIFactory, getMIManager, getParser, getSchMgr, getSubMappers, getWriter, knownMappers, removeAllMappers, removeMapper, removeSubMapper
 

Constructor Detail

JormCompilerConfiguratorImpl

public JormCompilerConfiguratorImpl()
Method Detail

setLoggerFactory

public void setLoggerFactory(LoggerFactory lf)
It assignes the logger factory.

Specified by:
setLoggerFactory in interface JormConfigurator
Overrides:
setLoggerFactory in class JormConfiguratorImpl
Parameters:
lf -

getVerifier

public Verifier getVerifier()
                     throws PException
Gets the verifier to be used by JORM.

Specified by:
getVerifier in interface JormCompilerConfigurator
Returns:
That verifier.
Throws:
PException

getGenerator

public Generator getGenerator()
                       throws PException
Gets the generator to be used by JORM.

Specified by:
getGenerator in interface JormCompilerConfigurator
Returns:
That generator.
Throws:
PException

getJormcOptsFile

public java.lang.String getJormcOptsFile()
                                  throws PException
Gets the name to be used for the compiler options file.

Specified by:
getJormcOptsFile in interface JormCompilerConfigurator
Returns:
That name.
Throws:
PException

getMOPFactory

public MOPFactory getMOPFactory(java.lang.String mappername)
                         throws PException
Gets the MOP factory associated with the given mapper.

Specified by:
getMOPFactory in interface JormCompilerConfigurator
Parameters:
mappername - The name of the concerned mapper.
Returns:
The MOPFactory object.
Throws:
PException

getGlobalJormcOptsFile

public java.io.InputStream getGlobalJormcOptsFile()
                                           throws PException
Gets an InputStream for reading the global compiler parameters.

Specified by:
getGlobalJormcOptsFile in interface JormCompilerConfigurator
Returns:
The allocated InputStream.
Throws:
PException

getMappingVerifier

public MappingVerifier getMappingVerifier(java.lang.String mappername)
                                   throws PException
Gets the verifier associated with the given mapper.

Specified by:
getMappingVerifier in interface JormCompilerConfigurator
Parameters:
mappername - The name of the concerned mapper.
Returns:
The MappingVerifier object.
Throws:
PException