|
Re: Difference between component factory and service factory [message #96557 is a reply to message #96526] |
Tue, 04 September 2007 20:18 |
Eclipse User |
|
|
|
Originally posted by: 9simmend.informatik.uni-hamburg.de
Pedro Silva schrieb:
> Hi,
>
> I was reading the Declarative Service Specification in OSGI compendium
> and noticed that there are to kinds of factory settings:
> - Component factory
> - Service factory
>
> What I can't seem to understand is what exactly are the differences
> between them. From what I've read they are about the same thing,
> especially because you have to use only one of them. If you use service
> factory setting the framework instantiates a new configuration, which is
> what the component factory does...
>
> Am I getting this wrong? Are they really different?
>
> Thanks,
> Pedro Silva
I used the servicefactory="true" option to create a new service instance
for each client. But there is no possibility to influence the kind of
instance being created. There is also no possibility to influence the
activation of the component, because it is a service you create.
The ComponentFactory instead leaves the activation to the client
requesting the component. Therfore it is no service but a component.
Using the componentfactory to create service doesnt make sense.
This is what i understood from the spec.
correct me if i am wrong
|
|
|
|
Powered by
FUDForum. Page generated in 0.03020 seconds