chetan mehrotra 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]. > > And as Inject is part of JSR 300 we can possibly have reference to > such a class in the code. > As the scripting.java bundle is compiling the class, we could use the @Reference annotation. However, maybe this is not a good idea to use it here as well.
What about this crazy idea? We support the scr annotations and the scripting.java registers a "generated" bundle which contains the scr descriptors. This would make these services managed by scr. But maybe that's really too crazy... Regards Carsten -- Carsten Ziegeler [email protected]
