Hi...

This is probably (hopefully) a newbie question. I have a need for
multiple instances of a service, that codewise are identical but have
different runtime configurations -- names, files accessed, etc.  So my
thought was to create a service factory that kicked off as many
instances of the ServiceImpl as needed based on the config properties.

Then it occurred to me that it would also be useful to be able to kick
off instances of the service at runtime, based on the needs of a given
bundle.  So that meant a service factory service.

Then it occurred to me that there are multiple types of services I'd
like to do this with, which seemed to call for an abstract class,
similar to ServiceBinder.GenericActivator, that could be subclassed
with the ServiceImpl and the ServiceFactoryImpl.  Thus serving as a
service factory service...factory.

Is there an easy, already-established way to do this?

Don

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to