default init

This commit is contained in:
Fabio Sinibaldi 2020-10-14 18:10:38 +02:00
parent 44c22ed0ad
commit 4fcd503699
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,11 @@ public class MetadataTemplateManagerFactory implements Factory<TemplateManager>{
private static final TemplateManager getInstance() {
if(instance==null) {
instance=new MetadataTemplateManagerImpl();
try {
((MetadataTemplateManagerImpl)instance).defaultInit();
}catch(Exception e) {
throw new RuntimeException("Unable to init temp ",e);
}
}
return instance;
}