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
