You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ramkumar Ramalingam (JIRA)" <de...@tuscany.apache.org> on 2009/03/26 11:44:00 UTC

[jira] Commented: (TUSCANY-2911) Non supported implicit references in Spring application context

    [ https://issues.apache.org/jira/browse/TUSCANY-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689433#action_12689433 ] 

Ramkumar Ramalingam commented on TUSCANY-2911:
----------------------------------------------

We should ignore the scenario 1 from this JIRA as this is now being addressed using TUSCANY-2941.

So only Scenario 2 mentioned in this JIRA is yet to be resolved.

I have raised a Spring Specification JIRA to mention that scenario 2 as mentioned above, will not be supported in SCA runtimes.
http://www.osoa.org/jira/browse/JAVA-149

> Non supported implicit references in Spring application context
> ---------------------------------------------------------------
>
>                 Key: TUSCANY-2911
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2911
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Spring Implementation Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP, SP2, IBM JDK 1.5
>            Reporter: Ramkumar Ramalingam
>            Assignee: Ramkumar Ramalingam
>             Fix For: Java-SCA-Next
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.