-1

I have seen the use of @component annotation, but i cannot able to find the use of factory attribute in that. I have worked out below url but no explanation given. [https://cwiki.apache.org/confluence/display/FELIX/SCR+Annotations#SCRAnnotations-Component]. Thanks in advance

vijaya kumar
  • 824
  • 2
  • 12
  • 21

1 Answers1

0

The scr annotations are deprecated now and you should consider to switch to the OSGi DS spec annotations.

I found a similar property serviceFactory there. See docs on osgi.org. It defines that DS creates one instance of the component per bundle that uses the service.

Christian Schneider
  • 19,420
  • 2
  • 39
  • 64
  • yes i found the use of serviceFactory, that belongs to "service" annotation. but i asked doubt in "component" annotation. do you have any idea about that. – vijaya kumar Oct 21 '16 at 10:50
  • I guess it does not make much sense to learn the felix annotations today. They might not be supported anymore in the next major felix scr version. – Christian Schneider Oct 21 '16 at 11:24