← Prev in month ← Prev in thread
Next in thread → Next in month →

@Reference annotation on setter method parameter or the method itself?

From
C Vamsi <>
Date
2008-04-26T08:51:46+00:00
ID
Thread
@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
← Prev in month ← Prev in thread
Next in thread → Next in month →