contextFactory.init(configuration);
TilesApplicationContext tilesContext =
contextFactory.createApplicationContext(context);
RendererFactory rendererFactory =
(RendererFactory) createFactory(configuration,
RENDERER_FACTORY_INIT_PARAM);
AttributeEvaluator evaluator = (AttributeEvaluator) createFactory(
configuration, ATTRIBUTE_EVALUATOR_INIT_PARAM);
if (evaluator instanceof TilesContextFactoryAware) {
((TilesContextFactoryAware) evaluator)
.setContextFactory(contextFactory);
}
if (evaluator instanceof TilesApplicationContextAware) {
((TilesApplicationContextAware) evaluator)
.setApplicationContext(tilesContext);
}
if (evaluator instanceof TilesContainerAware) {
((TilesContainerAware) evaluator).setContainer(container);
}
evaluator.init(configuration);
if (rendererFactory instanceof TilesContextFactoryAware) {
((TilesContextFactoryAware) rendererFactory)
.setContextFactory(contextFactory);
}
if (rendererFactory instanceof TilesApplicationContextAware) {
((TilesApplicationContextAware) rendererFactory)
.setApplicationContext(tilesContext);
}
if (rendererFactory instanceof TilesContainerAware) {
((TilesContainerAware) rendererFactory).setContainer(container);
}
if (rendererFactory instanceof AttributeEvaluatorAware) {
((AttributeEvaluatorAware) rendererFactory).setEvaluator(evaluator);
}
rendererFactory.init(initParameters);
PreparerFactory prepFactory =
(PreparerFactory) createFactory(configuration,
PREPARER_FACTORY_INIT_PARAM);