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: NEW ISSUE: Property and reference names computed from SCA annotations inweb 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



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