private static final Log LOG = LogFactory.getLog(BasicTilesContainerFactory.class);
/** {@inheritDoc} */
@Override
public TilesContainer createContainer(Object context) {
BasicTilesContainer container = instantiateContainer(context);
TilesContextFactory contextFactory = createContextFactory(context);
TilesApplicationContext applicationContext = contextFactory
.createApplicationContext(context);
container.setContextFactory(contextFactory);
container.setApplicationContext(applicationContext);
LocaleResolver resolver = createLocaleResolver(context,
applicationContext, contextFactory);
container.setDefinitionsFactory(createDefinitionsFactory(context,
applicationContext, contextFactory, resolver));
AttributeEvaluator evaluator = createEvaluator(context,
applicationContext, contextFactory, resolver);
container.setEvaluator(evaluator);
container.setPreparerFactory(createPreparerFactory(context,
applicationContext, contextFactory));
container.setRendererFactory(createRendererFactory(context,
applicationContext, contextFactory, container, evaluator));
return container;
}