You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Satya Deep Maheshwari <co...@gmail.com> on 2015/07/22 08:56:31 UTC
Difference between ServiceFactory and ConfigurationFactory?
Hi
I am trying to understand the difference between ServiceFactory and
ConfigurationFactory as specified in [1] . By using a configuration
factory, I am able to create multiple instances of my service
implementation with different config for each instance. But I am not really
sure what ServiceFactory offers and how to use it. Please help.
Regards
Satya Deep
[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html
Re: Difference between ServiceFactory and ConfigurationFactory?
Posted by Marcel Offermans <ma...@luminis.nl>.
In short a service factory allows you to create a different implementation of your service for each bundle that consumes it.
An example is the implementation of LogService.
Greetings, Marcel
On 22 Jul 2015 at 09:01:02, Satya Deep Maheshwari (connuser1@gmail.com) wrote:
Hi
I am trying to understand the difference between ServiceFactory and
ConfigurationFactory as specified in [1] . By using a configuration
factory, I am able to create multiple instances of my service
implementation with different config for each instance. But I am not really
sure what ServiceFactory offers and how to use it. Please help.
Regards
Satya Deep
[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html