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

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

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


Subject: NEW ISSUE: Problems with definition of @Service annotation


TARGET: Java Common Annotations and APIs

DESCRIPTION: Problems with definition of @Service annotation

1. The default for the interfaces attribute is an empty array
    of classes, but the default for the value attribute is
    Void.class.  These defaults are contradictory.

2. The meaning of Void.class if specified explicitly or implied
    by default is not defined.

3. If the above points are addressed, there is no reason to
    state that @Service on its own is meaningless, because it
    would have a well-defined meaning.

PROPOSAL:

a. Change the default for the interfaces attribute to {Void.class}.

b. Replace the sentence:
     A @Service annotation with no attributes is meaningless, it is the
     same as not having the annotation there at all.
    by the sentence:
     A @Service annotation that specifies a single class object Void.class
     either explicitly or by default is equivalent to not having the
     annotation there at all.  The @Service annotation MUST NOT specify
     Void.class in conjunction with any other service class or interface.





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