Hi All,
I'm an OSGi beginner and i'm trying to understand how osgi-ds works and
could fit my needs.
I want to realize a system where i could dinamically register and
unregister services and all of these services implements the same
interface ( for example IStandardService ).
Then suppose for examples i've two bundle A and B and each of one
provide an implementation of this interface ( AServiceImpl, BServiceImpl).
Actually i've declared a ComponentFactory in bundle A, and a
ComponentFactory in bundle B and each of these factory provide to create
instances of AserviceImpl and of BServiceImpl.
I've used a component factory because i could have both the case:
1 - Different implementations of the same interface
2 - Different instances of the same implementation ( but with different
properties ) for example a custom identifier for instances.
Is this the right approach??? This question is because i've read that
it's possible to have both ComponentFactory and ServiceFactory.
I've buyed the two books about OSGi, and read the free one from neil,
but i'm still having not clear these aspect.
Is there a clear tutorial on DS ComponentFactory/ServiceFactory usage???
Thanks
Andrea Zoppello