* @since 2.1.1
*/
protected DefinitionsFactory createDefinitionsFactory(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory,
LocaleResolver resolver) {
UnresolvingLocaleDefinitionsFactory factory = instantiateDefinitionsFactory(
applicationContext, contextFactory, resolver);
factory.setApplicationContext(applicationContext);
factory.setLocaleResolver(resolver);
factory.setDefinitionDAO(createLocaleDefinitionDao(applicationContext,
contextFactory, resolver));
if (factory instanceof Refreshable) {
((Refreshable) factory).refresh();
}
return factory;