use of org.apache.struts.tiles.xmlDefinition.DefinitionsFactory in project jaffa-framework by jaffa-projects.
the class JaffaI18nFactorySet method createDefaultFactory.
protected DefinitionsFactory createDefaultFactory(ServletContext servletContext) throws DefinitionsFactoryException, FileNotFoundException {
XmlDefinitionsSet rootXmlConfig = this.parseXmlFiles(servletContext, "", (XmlDefinitionsSet) null);
if (rootXmlConfig == null) {
throw new FileNotFoundException();
} else {
rootXmlConfig.resolveInheritances();
if (log.isDebugEnabled()) {
log.debug(rootXmlConfig);
}
DefinitionsFactory factory = new DefinitionsFactory(rootXmlConfig);
if (log.isDebugEnabled()) {
log.debug("factory loaded : " + factory);
}
return factory;
}
}
Aggregations