← Prev in month ← Prev in thread

ISSUE 20 - annotations on parameters

From
"Carack, Qon"
Date
2008-01-31T16:27:14+00:00
ID
Thread
ISSUE 20 - annotations on parameters
http://www.osoa.org/jira/browse/JAVA-20 

-----Ursprüngliche Nachricht-----
Von: Simon Nash [mailto:] 
Gesendet: Mittwoch, 30. Januar 2008 02:22
An: 
Betreff: Re: [sca-j] NEW ISSUE annotations on parameters

There is text elsewhere (lines 82 to 84 in section 2.2) that mentions 
@Reference annotations on setter and constructor parameters.  So the spec 
is inconsistent and this is a valid issue.

    Simon

Simon C. Nash, IBM Distinguished Engineer
Member of the IBM Academy of Technology
Tel. +44-1962-815156  Fax +44-1962-818999

"Peshev, Peter" <> 
28/01/2008 15:41

To
<>
cc

Subject
[sca-j] NEW ISSUE annotations on parameters

TARGET: Java Common Annotations and APIs Specification Version 1.1 (WD
26 September 2007)
 
DESCRIPTION:
The current Reference and Property annotation are defined in sections
8.13 and 8.14  as : 

@Target({METHOD, FIELD, PARAMETER})
@Retention(RUNTIME)
public @interface  Reference {

@Target({METHOD, FIELD, PARAMETER})
@Retention(RUNTIME)
public @interface  Property {

I.e. there is a possibility to define those annotations on parameter.
However the text description doesn't allow that feature and mentions
only field \ setter method injection : 

"The @Property annotation type is used to annotate a Java class field or
a setter method that is used to inject an SCA property value. "

"The @Reference annotation type is used to annotate a Java class field
or a setter method that is used to inject a service that resolves the
reference."

PROPOSAL:
Drop the possibility of defining those annotations on parameters. 

---------------------------------------------------------------------
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

---------------------------------------------------------------------
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
← Prev in month ← Prev in thread