OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j-jee message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: ISSUE-109: Property and reference names computed from SCA annotations inweb modules not specified explicitly


http://www.osoa.org/jira/browse/JAVA-109

Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093 or 8-295-6093
e-mail:booz@us.ibm.com

Inactive hide details for C Vamsi ---12/01/2008 08:44:12 AM---Target: sca-jee-1.1-spec-wd05.doc Description:C Vamsi ---12/01/2008 08:44:12 AM---Target: sca-jee-1.1-spec-wd05.doc Description:


From:

C Vamsi <vamsic007@in.ibm.com>

To:

sca-j-jee@lists.oasis-open.org

Date:

12/01/2008 08:44 AM

Subject:

[sca-j-jee] NEW ISSUE: Property and reference names computed from SCA annotations in web modules not specified explicitly





Target: sca-jee-1.1-spec-wd05.doc

Description:
Section 6.4.3 "Providing additional component type data for web
application" mentions that @Property and @Reference annotations can be
used, but does not specify how the property name and reference name should
be computed in the case where the property or reference name is not
specified in the annotation.  Note that section 6.1.4.1 gives an example in
case of session beans.  Incase of EJB's, the field name or the setter
method name alone is good enough to compute the property or reference name
as each EJB will result in a component.  In case of a web module, since the
entire module results in a single component, we may have to use something
more than just the field name or setter method name as two fields with same
name from two different web artifacts will have to result in two different
properties or references in the computed component type.  The spec has to
make it clear how the property and reference names are computed when name
is not specified in @Property and @Reference used on a web artifact.

Proposal:
In the absence of name in the @Property or @Reference annotation, prepend
the java classname of the artifact followed by underscore to the field name
or setter method name to compute the property name or reference name.

For illustration, add an example with an annotated class and the computed
component type.

++Vamsi
Apache Tuscany Committer  
http://tuscany.apache.org
Apache Geronimo Committer and Member of PMC  
http://geronimo.apache.org


---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  Follow this link to all your TCs in OASIS at:
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]