felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Hall <c...@hallwaytech.com>
Subject Re: SCR Service Annotations
Date Fri, 09 Apr 2010 20:11:07 GMT
Hi Felix, Thanks for the fast response!

If the component in question has @Reference fields in it, are they carried
over to the new instances from the factory?

Is it possible for the requesting component to send up information that can
be used to configure new instances from the factory?


On Fri, Apr 9, 2010 at 4:03 PM, Felix Meschberger <fmeschbe@gmail.com>wrote:

> Hi,
>
> On 09.04.2010 21:54, Carl Hall wrote:
> > When using the @Service annotation and specifying serviceFactory=true,
> > should I also implement the ServiceFactory interface to make sure the
> > (get|unget)Service methods are found or are there more annotations to
> mark
> > such methods without implementing the interface?
>
> No, if you mark a component as being a service factory component the
> Service Component Runtime registers a ServiceFactory implementation on
> behalf of the component and when a bundle requests the actual service,
> the runtime instantiates the component class and activates it to hand it
> out.
>
> In short, this is all take care of for the component.
>
> Regards
> Felix
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message