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

NEW ISSUE: Problems with definition of @Service annotation

From
Simon Nash <>
Date
2009-02-23T11:33:59+00:00
ID
Thread
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.
← Prev in month ← Prev in thread
Next in thread → Next in month →