Re: SCR Reference annotation on field

2016-08-24 Thread Alex Soto
Thanks again for the help. Coming new to DS, I could not find this information anywhere. Perhaps is my fault for not knowing where to look. I downloaded the official OSGi Alliance documents, and they are a great resource, but when it comes to simple stuff like how to set up your project from

Re: SCR Reference annotation on field

2016-08-24 Thread Tim Ward
Release 6 was the first release with formal Maven artifacts delivered by the OSGi alliance. All the others were uploaded by helpful members, but didn't always match the internal names of the OSGi build artifacts. The other new thing that release 6 offers is individual spec jars (so you don't ha

Re: SCR Reference annotation on field

2016-08-24 Thread Alex Soto
Ha! They renamed the artifact, that is why I could never find it. Version 5 was: org.osgi org.osgi.compendium And Version 6 is: org.osgi osgi.cmpn Not sure who decided that the abbreviated form was such an improvement. Saving a few bytes in the name h

Re: SCR Reference annotation on field

2016-08-24 Thread Alex Soto
Thank you Tim, I knew the version was probably the issue, but I could not find version 6 of org.osgi.compendium in any of the public Maven repositories. Do you know of a public Maven repository where I can get the artifact? Best regards, Alex soto > On Aug 23, 2016, at 6:32 PM, Tim Ward wro

Re: SCR Reference annotation on field

2016-08-23 Thread Tim Ward
This is absolutely correct. The "Release 6" version of declarative services supports field injection. The "Release 5" version that you are depending on does not! Regards, Tim Sent from my iPhone > On 23 Aug 2016, at 22:43, Alex Soto wrote: > > Hello, > > I am new SCR, but based on the "Th

SCR Reference annotation on field

2016-08-23 Thread Alex Soto
Hello, I am new SCR, but based on the "The OSGi Alliance OSGi Compendium, Release 6 July 2015" the Reference annotation can be applied to fields. @Reference Identify the annotated member as a reference of a Service Component. When the annotation is applied to a method, the method is the bind m