Re: service factory service factory

2010-05-07 Thread Donald Whytock
Generic service factory done, source and jar available at http://www.imtower.net/chatterbot/doku.php?id=servicefactory_bundle Feedback welcome. Don On Fri, Apr 30, 2010 at 12:11 PM, Donald Whytock wrote: > Okay, I've got a basic idea for a service factory service factory > (

Re: service factory service factory

2010-04-30 Thread Donald Whytock
Okay, I've got a basic idea for a service factory service factory (SFSF?). My initial idea was to create a generic activator to subclass, and just override the pieces needed, except (unless I'm missing something in core Java) the subclass has to at least override the start() for any

Re: service factory service factory

2010-04-28 Thread Tribon Cheng
8 Holger Hoffstätte > > > >> Donald Whytock wrote: > >>> 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.GenericActivat

Re: service factory service factory

2010-04-28 Thread Donald Whytock
> >>   �...@property >>    private String prop1; >> >>   //... >> >> } >> >> >> Then, you can declare two instances: >> >> >>   >> >> >>   >> >> >> >> >> At runtime, yo

Re: service factory service factory

2010-04-28 Thread Donald Whytock
by the two instances. > > Regards, > > Clement > >> >> 2010/4/28 Holger Hoffstätte >> >>> Donald Whytock wrote: >>>> Then it occurred to me that there are multiple types of services I'd >>>> like to do this with, which seemed to call

Re: service factory service factory

2010-04-27 Thread Clement Escoffier
;>> 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? >>

Re: service factory service factory

2010-04-27 Thread Tribon Cheng
ed 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

Re: service factory service factory

2010-04-27 Thread Holger Hoffstätte
Thus serving as a > service factory service...factory. > > Is there an easy, already-established way to do this? Sadly not standardized, which is why there is currently an RFP open for voting within the OSGi member group - hopefully resulting soon in a proper RFC and implementation. Un

service factory service factory

2010-04-27 Thread Donald Whytock
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