}
protected void buildRepository(GeneratorLibraryRepository aRepository) {
- aRepository.registerLibraryFactory("freemarker", new FreemarkerGenerator.FreemarkerGeneratorLibraryFactory( MirGlobal.getConfigProperty("Home") ) );
+ aRepository.registerLibraryFactory("freemarker",
+ new FreemarkerGenerator.FreemarkerGeneratorLibraryFactory(
+ MirGlobal.config().getString("Home") ) );
}
public Generator.GeneratorLibrary makeProducerGeneratorLibrary() throws MirLocalizerExc, MirLocalizerFailure {
try {
- return repository.constructCompositeLibrary(MirGlobal.getConfigProperty("Mir.Localizer.Producer.GeneratorLibrary"));
+ return repository.constructCompositeLibrary(MirGlobal.config().getString("Mir.Localizer.Producer.GeneratorLibrary"));
}
catch (Throwable t) {
throw new MirLocalizerFailure(t);
public Generator.GeneratorLibrary makeAdminGeneratorLibrary() throws MirLocalizerExc, MirLocalizerFailure {
try {
- return repository.constructCompositeLibrary(MirGlobal.getConfigProperty("Mir.Localizer.Admin.GeneratorLibrary"));
+ return repository.constructCompositeLibrary(MirGlobal.config().getString("Mir.Localizer.Admin.GeneratorLibrary"));
}
catch (Throwable t) {
throw new MirLocalizerFailure(t);
public Generator.GeneratorLibrary makeOpenPostingGeneratorLibrary() throws MirLocalizerExc, MirLocalizerFailure {
try {
- return repository.constructCompositeLibrary(MirGlobal.getConfigProperty("Mir.Localizer.OpenPosting.GeneratorLibrary"));
+ return repository.constructCompositeLibrary(MirGlobal.config().getString("Mir.Localizer.OpenPosting.GeneratorLibrary"));
}
catch (Throwable t) {
throw new MirLocalizerFailure(t);
};
public WriterEngine makeWriterEngine() throws MirLocalizerExc, MirLocalizerFailure {
- return new MirBasicWriterEngine(MirGlobal.getConfigProperty("Mir.DefaultEncoding"));
+ return new MirBasicWriterEngine(MirGlobal.config().getString("Mir.DefaultEncoding"));
}
}