RendererFactory rendererFactory =
(RendererFactory) createFactory(configuration,
RENDERER_FACTORY_INIT_PARAM);
AttributeEvaluator evaluator = (AttributeEvaluator) createFactory(
configuration, ATTRIBUTE_EVALUATOR_INIT_PARAM);
if (evaluator instanceof TilesApplicationContextAware) {
((TilesApplicationContextAware) evaluator)
.setApplicationContext(context);
}
if (evaluator instanceof TilesContainerAware) {
((TilesContainerAware) evaluator).setContainer(container);
}
evaluator.init(configuration);
if (rendererFactory instanceof TilesRequestContextFactoryAware) {
((TilesRequestContextFactoryAware) rendererFactory)
.setRequestContextFactory(requestContextFactory);
}