Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3552

CLONE -Support for <constructor-arg> element in Spring Implementation

    Details

    • Patch Info:
      Patch Available

      Description

      Currently Tuscany Spring Implementation does not seem to support the <custructor-arg/> element in the application context XML file.

      Here the issue is, Tuscany fails to identify this tag and ignores the configuration done from these tags.

      Spring uses <constructor-arg> element for the following configuration.....

      <bean id="beanRefFactory" class="org.springframework.
      context.support.ClassPathXmlApplicationContext">
      <constructor-arg><list>
      <value>Organization-spring-context.xml</value>
      </list></constructor-arg>
      </bean>

      In this instance, it tries to load the SCA aware Spring application context using ClassPathXmlApplicationContext.

      <bean id="orderService" class="com.lizjason.spring.OrderService">
      <property name="companyName">
      <value>lizjason</value>
      </property>
      <constructor-arg>
      <ref bean="orderDAO">
      </constructor-arg>
      </bean>

      In this instance, it tries to reference a bean from the constructor argument.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aelder ant elder
                Reporter:
                eddiehsu Eddie Hsu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: