← Prev in month ← Prev in thread

NEW ISSUE annotations on parameters

From
Peshev, Peter <>
Date
2008-01-28T15:42:03+00:00
ID
Thread
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.
← Prev in month ← Prev in thread