Greg Dritschler wrote:
The WirePostProcessor is passed a Wire from which it can find the
source and
target contract and the source and target URI. If it needs context
from the
SCDL that is not in the contracts, is the processor expected to look
up the
URIs in the component manager? That seems rather indirect. Since the
code
building the wires has the source and target objects, couldn't it just
pass
them to the postprocessor?
Greg Dritschler
Greg,
If I understand correctly, the problem is that o.a.t.spi.wire.Wire
duplicates some of the info already present in the assembly model, and
does not give a way to access the other info that is not duplicated.
What other context do you need? policies? binding info? the
implementation types on both ends of the wire? anything else?
This is not the first time that we run into this kind of issue. This
seems to be a general design issue in the Tuscany runtime, not just with
wires but also with component implementations and bindings, and I think
that we need two fixes here:
- avoid duplicating most of the assembly model in another incomplete
runtime model (like o.a.t.spi.wire.Wire or
o.a.t.spi.component.AtomicComponent)
- make sure that Tuscany extensions get passed the pointers to the
assembly model so that they get the info they need
I think that the changes that we've started to make to the core runtime
and the SPI work that Raymond and Ant have started will have to address
this.
Thoughts?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]