* @since 2.1.0
*/
protected DefinitionsFactory createDefinitionsFactory(Object context,
TilesApplicationContext applicationContext,
TilesContextFactory contextFactory, LocaleResolver resolver) {
LocaleDefinitionsFactory factory = instantiateDefinitionsFactory(
context, applicationContext, contextFactory, resolver);
factory.setApplicationContext(applicationContext);
factory.setLocaleResolver(resolver);
factory.setDefinitionDAO(createLocaleDefinitionDao(context,
applicationContext, contextFactory, resolver));
if (factory instanceof Refreshable) {
((Refreshable) factory).refresh();
}
return factory;