/** * Parses a named bean configuration from the given element. * Bean configuration uses the following format: * <pre> * <BeanName class="..."> * <param name="..." value="..."/> * ... * </BeanName> * </pre> * <p> * The returned bean configuration object contains the configured * class name and configuration parameters. Variable replacement * is performed on the parameter values. * * @param parent parent element * @param name name of the bean configuration element * @return bean configuration, * @throws ConfigurationException if the configuration element does not * exist or is broken */ protected BeanConfig parseBeanConfig(Element parent, String name) throws ConfigurationException { // Bean configuration element Element element = getElement(parent, name); return parseBeanConfig(element); }
/** * Parses a named bean configuration from the given element. * Bean configuration uses the following format: * <pre> * <BeanName class="..."> * <param name="..." value="..."/> * ... * </BeanName> * </pre> * <p> * The returned bean configuration object contains the configured * class name and configuration parameters. Variable replacement * is performed on the parameter values. * * @param parent parent element * @param name name of the bean configuration element * @return bean configuration, * @throws ConfigurationException if the configuration element does not * exist or is broken */ protected BeanConfig parseBeanConfig(Element parent, String name) throws ConfigurationException { // Bean configuration element Element element = getElement(parent, name); return parseBeanConfig(element); }
/** * {@inheritDoc} */ @Override protected BeanConfig parseBeanConfig(Element parent, String name) throws ConfigurationException { BeanConfig cfg = super.parseBeanConfig(parent, name); cfg.setConnectionFactory(connectionFactory); cfg.setInstanceFactory(beanFactory); configVisitor.visit(cfg); return cfg; }
/** * {@inheritDoc} */ @Override protected BeanConfig parseBeanConfig(Element element) throws ConfigurationException { BeanConfig cfg = super.parseBeanConfig(element); cfg.setConnectionFactory(connectionFactory); cfg.setInstanceFactory(beanFactory); configVisitor.visit(cfg); return cfg; }
/** * {@inheritDoc} */ @Override protected BeanConfig parseBeanConfig(Element parent, String name) throws ConfigurationException { BeanConfig cfg = super.parseBeanConfig(parent, name); cfg.setConnectionFactory(connectionFactory); cfg.setInstanceFactory(beanFactory); configVisitor.visit(cfg); return cfg; }
/** * {@inheritDoc} */ @Override protected BeanConfig parseBeanConfig(Element element) throws ConfigurationException { BeanConfig cfg = super.parseBeanConfig(element); cfg.setConnectionFactory(connectionFactory); cfg.setInstanceFactory(beanFactory); configVisitor.visit(cfg); return cfg; }