/** * Create a new ChildBeanDefinition for the given parent, * providing constructor arguments and property values. * Takes a bean class name to avoid eager loading of the bean class. * @param parentName the name of the parent bean * @param beanClassName the name of the class to instantiate * @param cargs the constructor argument values to apply * @param pvs the property values to apply */ public ChildBeanDefinition( String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) { super(cargs, pvs); this.parentName = parentName; setBeanClassName(beanClassName); }
/** * Create a new ChildBeanDefinition for the given parent, * providing constructor arguments and property values. * Takes a bean class name to avoid eager loading of the bean class. * @param parentName the name of the parent bean * @param beanClassName the name of the class to instantiate * @param cargs the constructor argument values to apply * @param pvs the property values to apply */ public ChildBeanDefinition( String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) { super(cargs, pvs); this.parentName = parentName; setBeanClassName(beanClassName); }
/** * Create a new ChildBeanDefinition for the given parent, * providing constructor arguments and property values. * Takes a bean class name to avoid eager loading of the bean class. * @param parentName the name of the parent bean * @param beanClassName the name of the class to instantiate * @param cargs the constructor argument values to apply * @param pvs the property values to apply */ public ChildBeanDefinition( String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) { super(cargs, pvs); this.parentName = parentName; setBeanClassName(beanClassName); }
/** * Create a new ChildBeanDefinition for the given parent, * providing constructor arguments and property values. * Takes a bean class name to avoid eager loading of the bean class. * @param parentName the name of the parent bean * @param beanClassName the name of the class to instantiate * @param cargs the constructor argument values to apply * @param pvs the property values to apply */ public ChildBeanDefinition( String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) { super(cargs, pvs); this.parentName = parentName; setBeanClassName(beanClassName); }
/** * Create a new ChildBeanDefinition for the given parent, * providing constructor arguments and property values. * Takes a bean class name to avoid eager loading of the bean class. * @param parentName the name of the parent bean * @param beanClassName the name of the class to instantiate * @param cargs the constructor argument values to apply * @param pvs the property values to apply */ public ChildBeanDefinition( String parentName, String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) { super(cargs, pvs); this.parentName = parentName; setBeanClassName(beanClassName); }
/** * @see org.apache.cocoon.core.container.spring.avalon.BridgeElementParser#createComponents(org.w3c.dom.Element, org.apache.cocoon.core.container.spring.avalon.ConfigurationInfo, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.support.BeanDefinitionReader, org.springframework.core.io.ResourceLoader) */ public void createComponents(Element element, ConfigurationInfo info, BeanDefinitionRegistry registry, BeanDefinitionReader reader, ResourceLoader resourceLoader) throws Exception { super.createComponents(element, info, registry, reader, resourceLoader); // add string template parser for sitemap variable substitution final ChildBeanDefinition beanDef = new ChildBeanDefinition("org.apache.cocoon.template.expression.AbstractStringTemplateParser"); beanDef.setBeanClassName("org.apache.cocoon.components.treeprocessor.variables.LegacySitemapStringTemplateParser"); beanDef.setSingleton(true); beanDef.setLazyInit(false); beanDef.getPropertyValues().addPropertyValue("serviceManager", new RuntimeBeanReference("org.apache.avalon.framework.service.ServiceManager")); this.register(beanDef, "org.apache.cocoon.el.parsing.StringTemplateParser/legacySitemap", null, registry); final RootBeanDefinition resolverDef = new RootBeanDefinition(); resolverDef.setBeanClassName("org.apache.cocoon.components.treeprocessor.variables.StringTemplateParserVariableResolver"); resolverDef.setLazyInit(false); resolverDef.setScope("prototype"); resolverDef.getPropertyValues().addPropertyValue("stringTemplateParser", new RuntimeBeanReference("org.apache.cocoon.el.parsing.StringTemplateParser/legacySitemap")); resolverDef.getPropertyValues().addPropertyValue("objectModel", new RuntimeBeanReference("org.apache.cocoon.el.objectmodel.ObjectModel")); this.register(resolverDef, "org.apache.cocoon.components.treeprocessor.variables.VariableResolver", null, registry); }