XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader(beanFactory);
xmlReader.loadBeanDefinitions(resource);
}
}
TransformerDefinitions definitions = xConfig.getTransformerDefinitions();
//4� step: Configuro il trasformer per i Bean
org.salamandra.web.core.config.digester.Transformer transformerBean = new org.salamandra.web.core.config.digester.Transformer();
transformerBean.setId(BeanTransformer.TRANSFORMER_BEAN_ID);
transformerBean.setType(BeanTransformer.class.getName());
definitions.addTransformer(transformerBean);
//5� step: Inizializzo i Transformer
// per ogni Transformer
List<org.salamandra.web.core.config.digester.Transformer> lstTrans = definitions.getTransformers();
for (Iterator<org.salamandra.web.core.config.digester.Transformer> iter = lstTrans.iterator(); iter.hasNext();) {
org.salamandra.web.core.config.digester.Transformer trans = iter.next();
Transformer transformer = createTransformerInstance(servletContext, trans, beanFactory);