Yes, that's what I was referring to. On Mar 15, 2011, at 8:18 AM, chetan mehrotra <[email protected]> wrote:
> Also just to confirm with Inject we are referring to > javax.inject.Inject [1] annotation which is part of JSR 300 and not a > new custom one > > Chetan Mehrotra > > [1] http://download.oracle.com/javaee/6/api/javax/inject/Inject.html > > On Tue, Mar 15, 2011 at 3:49 PM, Bertrand Delacretaz > <[email protected]> wrote: >> Hi, >> >> On Tue, Mar 15, 2011 at 10:16 AM, chetan mehrotra >> <[email protected]> wrote: >>> One reason for using Inject would be that @Reference is a compile time >>> annotation (i.e. RetentionPolicy.SOURCE). And due do that a new >>> annotation TestReference is being used in Sling Testing component [1]. >> >> I agree with Chetan here, as the existing felix @Reference annotation >> cannot be used, better use a different name to avoid confusion. >> >> -Bertrand >> >>> [1] >>> http://svn.apache.org/viewvc/sling/trunk/testing/junit/core/src/main/java/org/apache/sling/junit/annotations/TestReference.java?view=markup >>
