[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [LIKELY JUNK]Re: [sca-j] NEW ISSUE annotations on parameters
Hi Raymond, I was just being asked what does it mean to have it on arbitrary business method Maybe as part of issue resolution we can add the constructor usage in the text, as well as say the runtime must not support those on arbitrary business methods operations that are different from constructors. Best Regards Peter ________________________________ From: Raymond Feng [mailto:rfeng@us.ibm.com] Sent: Monday, 28. January 2008 18:34 To: Peshev, Peter Cc: sca-j@lists.oasis-open.org Subject: [LIKELY JUNK]Re: [sca-j] NEW ISSUE annotations on parameters Hi, I don't think we can remove the PARAMETER target for the @Reference/@Property annotations. The constructor based injection will require that. The following is a sample service impl: @Service(MyService.class) public class MyServiceImpl { public MyService(@Reference AnotherService ref, @Property prop) { } ... } Thanks, Raymond From: "Peshev, Peter" <peter.peshev@sap.com> To: <sca-j@lists.oasis-open.org> Date: 01/28/2008 07:42 AM 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 <https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]