You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Gilbert Kwan <gi...@gmail.com> on 2008/04/02 19:13:46 UTC

Re: Fw: [jira] Created: (TUSCANY-2165) Java runtime should inject service references to field with common name in absence of @Reference

I would like to contribute a similar test about @Service for the section of
1.2.1 and 1.8.17 of "SCA Java Common Annotations and APIs V1.00 "
specification.
Regards
Gilbert Kwan



On Wed, Apr 2, 2008 at 1:11 PM, Gilbert Kwan <gk...@ca.ibm.com> wrote:

>
>
>
> Gilbert Kwan
>
> ----- Forwarded by Gilbert Kwan/Toronto/IBM on 04/02/2008 01:11 PM -----
>
>             "Kevin Williams
>             (JIRA)"
>             <tuscany-dev@ws.a                                          To
>             pache.org>                tuscany-dev@ws.apache.org
>                                                                        cc
>             03/29/2008 06:03
>             PM                                                    Subject
>                                       [jira] Created: (TUSCANY-2165) Java
>                                       runtime should inject service
>             Please respond to         references to field with common
>             tuscany-dev@ws.ap         name in absence of @Reference
>                 ache.org
>
>
>
>
>
>
>
>
>
> Java runtime should inject service references to field with common name in
> absence of @Reference
>
> -------------------------------------------------------------------------------------------------
>
>
>                 Key: TUSCANY-2165
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2165
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>            Priority: Minor
>
>
> The Java Annotations&APIs specification Lines 1407, 1408, 1409, 1410 ...
>
>     * References may also be injected via public setter methods even when
> the
>     * "@Reference" annotation is not present. However, the "@Reference"
>     * annotation must be used in order to inject a reference onto a non
> public
>     * field. In the case where there is no "@Reference" annotation, the
> name of
>     * the reference is the same as the name of the field or setter.
>
> The vTest:
>
> org.apache.tuscany.sca.vtest.javaapi.ReferenceAnnotationTestCase.atReference2
>  demonstrates this issue
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
>

Re: Fw: [jira] Created: (TUSCANY-2165) Java runtime should inject service references to field with common name in absence of @Reference

Posted by Kevin Williams <kj...@gmail.com>.
Hi Gilbert,
Thanks!  I just opened Tuscany-2188 to track @Service testing.  You
can post your code there and I will take a look.
--
Kevin

On Wed, Apr 2, 2008 at 11:13 AM, Gilbert Kwan <gi...@gmail.com> wrote:
> I would like to contribute a similar test about @Service for the section of
>  1.2.1 and 1.8.17 of "SCA Java Common Annotations and APIs V1.00 "
>  specification.
>  Regards
>  Gilbert Kwan
>
>
>
>  On Wed, Apr 2, 2008 at 1:11 PM, Gilbert Kwan <gk...@ca.ibm.com> wrote:
>
>  >
>  >
>  >
>  > Gilbert Kwan
>  >
>  > ----- Forwarded by Gilbert Kwan/Toronto/IBM on 04/02/2008 01:11 PM -----
>  >
>  >             "Kevin Williams
>  >             (JIRA)"
>  >             <tuscany-dev@ws.a                                          To
>  >             pache.org>                tuscany-dev@ws.apache.org
>  >                                                                        cc
>  >             03/29/2008 06:03
>  >             PM                                                    Subject
>  >                                       [jira] Created: (TUSCANY-2165) Java
>  >                                       runtime should inject service
>  >             Please respond to         references to field with common
>  >             tuscany-dev@ws.ap         name in absence of @Reference
>  >                 ache.org
>
>
> >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > Java runtime should inject service references to field with common name in
>  > absence of @Reference
>  >
>  > -------------------------------------------------------------------------------------------------
>  >
>  >
>  >                 Key: TUSCANY-2165
>  >                 URL: https://issues.apache.org/jira/browse/TUSCANY-2165
>  >             Project: Tuscany
>  >          Issue Type: Bug
>  >          Components: Java SCA Core Runtime
>  >    Affects Versions: Java-SCA-Next
>  >            Reporter: Kevin Williams
>  >            Priority: Minor
>  >
>  >
>  > The Java Annotations&APIs specification Lines 1407, 1408, 1409, 1410 ...
>  >
>  >     * References may also be injected via public setter methods even when
>  > the
>  >     * "@Reference" annotation is not present. However, the "@Reference"
>  >     * annotation must be used in order to inject a reference onto a non
>  > public
>  >     * field. In the case where there is no "@Reference" annotation, the
>  > name of
>  >     * the reference is the same as the name of the field or setter.
>  >
>  > The vTest:
>  >
>  > org.apache.tuscany.sca.vtest.javaapi.ReferenceAnnotationTestCase.atReference2
>  >  demonstrates this issue
>  >
>  > --
>  > This message is automatically generated by JIRA.
>  > -
>  > You can reply to this email to add a comment to the issue online.
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>  > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>  >
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org