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
> (
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
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
>
>> �...@property
>> private String prop1;
>>
>> //...
>>
>> }
>>
>>
>> Then, you can declare two instances:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> At runtime, yo
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
;>> 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?
>>
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
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
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
9 matches
Mail list logo