← Prev in month ← Prev in thread

Re: [sca-j] @Reference annotation on setter method parameter or the methoditself?

From
Simon Nash <>
Date
2008-04-27T21:30:50+00:00
ID
Thread
Re: [sca-j] @Reference annotation on setter method parameter or the methoditself?
Vamsi,

This appears to be a duplicate of JAVA-33.
 Were you intending to reopen that issue (which would require a 2/3
majority), or are you OK with the change made to this text by the resolution
to JAVA-33?

    Simon

Simon C. Nash, IBM Distinguished Engineer

Member of the IBM Academy of Technology

Tel. +44-1962-815156  Fax +44-1962-818999

C Vamsi <>

26/04/2008 09:51

To



cc

Subject

[sca-j] @Reference annotation on setter
method parameter or the method itself?

DESCRIPTION:

Java Common Annotations and APIs Specification v1.00 - Sec 1.2.2 - Lines

245 to 246:

245 Accessing a service using reference injection is done by defining a

field, a setter method parameter, or a

246 constructor parameter typed by the service interface and annotated
with

an @Reference annotation.

From the above it could be interpreted that the parameter to the setter

method can be annotated with @Reference whereas section 1.8.14 does not

talk about or give an example where a parameter to the setter method is

annotated with @Reference, but mentions that the setter method itself (not

the input parameter) should be annotated with @Reference.

PROPOSAL: Change lines 245 and 246 to read the following:

Accessing a service using reference injection is done by defining a field,

a setter method with input parameter typed by the service interface, or
a

constructor parameter typed by the service interface and annotated with
an

@Reference annotation.

++Vamsi

---------------------------------------------------------------------

To unsubscribe from this mail list, you must leave the OASIS TC that

generates this mail.  You may a link to this group and all your TCs
in OASIS

at:

https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number
741598. 

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
← Prev in month ← Prev in thread