de.dante.extex.language
Class LanguageManagerFactory
java.lang.Object
de.dante.util.framework.AbstractFactory
de.dante.extex.language.LanguageManagerFactory
- All Implemented Interfaces:
- Configurable, LogEnabled, RegistrarObserver
- public class LanguageManagerFactory
- extends AbstractFactory
This class provides a factory for a
LanguageManager
.
<Language default="ExTeX">
<TeX class="de.dante.extex.language.impl.BaseLanguageManager"
default="default">
<default
class="de.dante.extex.language.hyphenation.liang.LiangsHyphenationTable">
<LigatureBuilder
class="de.dante.extex.language.ligature.impl.LigatureBuilderImpl"/>
<WordTokenizer
class="de.dante.extex.language.word.impl.TeXWords"/>
</default>
</TeX>
<ExTeX class="de.dante.extex.language.impl.LoadingLanguageManager"
default="default">
<default
class="de.dante.extex.language.hyphenation.liang.LiangsHyphenationTable">
<LigatureBuilder
class="de.dante.extex.language.ligature.impl.LigatureBuilderImpl"/>
<WordTokenizer
class="de.dante.extex.language.word.impl.ExTeXWords"/>
</default>
</ExTeX>
</Language>
The class to be instantiated can implements one or more interfaces which
trigger special actions:
Configurable
-
If this interface is implemented then a
Configuration
is passed in with the interface method.
LogEnabled
-
If this interface is implemented then a
Logger
is passed in with the interface method.
Localizable
-
If this interface is implemented then a
Localizer
is passed in with the interface method.
ResourceConsumer
-
If this interface is implemented then a
ResourceFinder
is passed in with the interface method.
OutputStreamConsumer
-
If this interface is implemented then a
OutputStreamFactory
is passed in with the interface method.
- Version:
- $Revision: 1.5 $
- Author:
- Gerd Neugebauer
- See Also:
AbstractFactory
Methods inherited from class de.dante.util.framework.AbstractFactory |
configure, configure, createInstance, createInstance, createInstance, createInstanceForConfiguration, createInstanceForConfiguration, createInstanceForConfiguration, enableLogging, enableLogging, getConfiguration, getLogger, reconnect, selectConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LanguageManagerFactory
public LanguageManagerFactory(Configuration config,
java.util.logging.Logger logger)
throws ConfigurationException
- Creates a new object.
- Parameters:
config
- the configurationlogger
- the logger
- Throws:
ConfigurationException
- in case of an configuration error
newInstance
public LanguageManager newInstance(java.lang.String type,
OutputStreamFactory outFactory,
ResourceFinder finder)
throws ConfigurationException
- Get an instance of a
LanguageManager
.
This method selects one of the entries in the configuration. The
selection is done with the help of a type String. If the type is
null
or the empty string then the default from the
configuration is used.
- Parameters:
type
- the type to useoutFactory
- the output stream factory to pass infinder
- the resource finder to pass in
- Returns:
- a new context
- Throws:
ConfigurationException
- in case of an configuration error