Search in sources :

Example 1 with DefinitionsFactory

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;
    }
}
Also used : FileNotFoundException(java.io.FileNotFoundException) DefinitionsFactory(org.apache.struts.tiles.xmlDefinition.DefinitionsFactory) XmlDefinitionsSet(org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)

Aggregations

FileNotFoundException (java.io.FileNotFoundException)1 DefinitionsFactory (org.apache.struts.tiles.xmlDefinition.DefinitionsFactory)1 XmlDefinitionsSet (org.apache.struts.tiles.xmlDefinition.XmlDefinitionsSet)1