hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Smith <>
Subject Service Point Aliasing
Date Tue, 28 Dec 2004 00:11:21 GMT

I'm interested in creating an alias from one service point to another.
Consider the following scenario:

* Interfaces (A,B) exist where B is an extension of A.
* Some parts of the code only know about interface A, so they ask for
A by that name.
* "Advanced" pieces of code know that B exists and ask for that
interface accordingly.
* Only one implementation of A,B should exist (in the runtime) at any
given time.

The closest I've been able to come in implementing this scenario is to
use <invoke-factory> and define a custom ServiceImplementationFactory
that calls module.getService() to get the handle on the service I
want. Unfortunately I'm not sure what impact/strangness this
introduces with different service models -- ideally the alias forcibly
uses the servicemodel  from the target.

Put another way, I'd like to get something along the following lines:

service point B == instance of B_Impl
service point A == alias to B 

Can anyone provide some guidance on the "right" way to solve this problem? 



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message