You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <de...@tuscany.apache.org> on 2008/11/01 21:31:44 UTC

[jira] Commented: (TUSCANY-2658) @Callback should not be required on forward Java interface if component ref/service intf definition fully defines forward/callback interface pair

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

Simon Nash commented on TUSCANY-2658:
-------------------------------------

Component definitions must be compatible with the component type of the specified implementation.  If the component definition specifies a bidirectional interface and the component type specifies a unidirectional interface (as in this example), this is an error.  The component type must also specify a bidirectional interface, either by using the @Callback annotation on the Java interface or by including a componentType side file.

> @Callback should not be required on forward Java interface if component ref/service intf definition fully defines forward/callback interface pair
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2658
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2658
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Java Implementation Extension
>            Reporter: Scott Kurz
>         Attachments: 2658.recreate
>
>
> If we have a component reference/service interface definition which contains a forward/callback interface pair, then our runtime should not also require the @Callback to be present on the forward Java interface.
> E.g. if we have:
>     <component name="CallBackBasicClient">
> 		<implementation.java ... />
> 		<reference name="aCallBackService" target="CallBackBasicService">
>                     <interface.java interface="org.apache.tuscany.sca.test.CallBackBasicService" 
>                           callbackInterface="org.apache.tuscany.sca.test.CallBackBasicCallBack"/>
>                 </reference>
>                 ...
>     <component name="CallBackBasicService">
>       <implementation.java .../>
>       <service name="CallBackBasicService">
>             <interface.java interface="org.apache.tuscany.sca.test.CallBackBasicService"
>               callbackInterface="org.apache.tuscany.sca.test.CallBackBasicCallBack"/>
>       </service>
>     </component>
>    
> then we shouldn't require the CallBackBasicService class to carry the annotation: @Callback(CallBackBasicCallBack.class)
> In modifying the itest/callback-basic test I saw we had this problem (will attach this recreate patch).
> Issue was discussed here
>  http://www.mail-archive.com/dev@tuscany.apache.org/msg03087.html
> and the motivating use case was the desire to avoid having to add @Callback to a wsimport-generated Java interface. 

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