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
Asked
Active
Viewed 252 times
-1
-
Please explain the reason for down voting – vijaya kumar Oct 21 '16 at 08:11
-
No idea about the down vote. I try to answer it below – Christian Schneider Oct 21 '16 at 09:21
1 Answers
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