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

Non supported implicit references in Spring application context

    XMLWordPrintableJSON

Details

    Description

      Here are few scenarios where the implicit references/properties does not work in Tuscany.....

      Scenario 1: (For contructor-arg elements whose type attribute is absent)

      <constructor-arg><ref bean="savingsAccountService"/></constructor-arg>
      <constructor-arg><ref bean="stockAccountService"/></constructor-arg>

      Scenario 2: (Injection through Collections)
      <bean id="moreComplexObject" class="example.ComplexObject">
      <!-- results in a setAdminEmails(java.util.Properties) call -->
      <property name="adminEmails">
      <props>
      <prop key="administrator">administrator@example.org</prop>
      <prop key="support">support@example.org</prop>
      <prop key="development">development@example.org</prop>
      </props>
      </property>
      <!-- results in a setSomeList(java.util.List) call -->
      <property name="someList">
      <list>
      <value>a list element followed by a reference</value>
      <ref bean="myDataSource" />
      </list>
      </property>
      <!-- results in a setSomeMap(java.util.Map) call -->
      <property name="someMap">
      <map>
      <entry>
      <key>
      <value>an entry</value>
      </key>
      <value>just some string</value>
      </entry>
      <entry>
      <key>
      <value>a ref</value>
      </key>
      <ref bean="myDataSource" />
      </entry>
      </map>
      </property>
      <!-- results in a setSomeSet(java.util.Set) call -->
      <property name="someSet">
      <set>
      <value>just some string</value>
      <ref bean="myDataSource" />
      </set>
      </property>
      </bean>

      Attachments

        Activity

          People

            ramkumar.rj Ramkumar Ramalingam
            ramkumar.rj Ramkumar Ramalingam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: