/** * 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 element * @return bean configuration, * @throws ConfigurationException if the configuration element does not * exist or is broken */ protected BeanConfig parseBeanConfig(Element element) throws ConfigurationException { // Bean implementation class String className = getAttribute(element, CLASS_ATTRIBUTE); // Bean properties Properties properties = parseParameters(element); return new BeanConfig(className, properties); }
/** * 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 element * @return bean configuration, * @throws ConfigurationException if the configuration element does not * exist or is broken */ protected BeanConfig parseBeanConfig(Element element) throws ConfigurationException { // Bean implementation class String className = getAttribute(element, CLASS_ATTRIBUTE); // Bean properties Properties properties = parseParameters(element); return new BeanConfig(className, properties); }