On Feb 14, 2007, at 7:59 AM, Ignacio Silva-Lepe wrote:

Hmm, my questions are simpler than I may have made them sound. From
your original post, you say that you want to eliminate outbound and
inbound wires and replace/merge them by/into a single wire attached to the
source.
Before the merge we used to have, from the perspective of a component C, an inbound wire per service it exposed and an outbound wire per reference
it used. Each inbound wire had a set of inbound chains (one per opera-
tion in the forward direction) and a number of callback outbound chain sets (one set per source component, and each group with one chain per callback operation). Similarly, each outbound wire had a set of outbound chains and
a set of inbound chains.
If a single wire is going to merge it all, are both sets of inbound chains
and
all sets of outbound chains going to be preserved? If not, what's the new
structure that is going to be in place and how does it preserve the
pre-exis-
ting behavior?
Like I said, this may be common knowledge and I may just have missed the
explanation, in which case would someone point me to it?

Sorry, maybe I didn't explain clearly enough in previous posts. Both sets of chains will be preserved. Source components will contain the wires to a target and targets will no longer have incoming wires. The Allocator on the master will build up a WireDefinition which will be marshalled to a slave. The WireDefinition will contain a set of InterceptorDefinitions which InterceptorBuilders will use to constitute a Wire. The WireDefinition will also contain source and target URIs. Hence, the Wire will contain both forward and callback invocation chains. This will mean the Connector can change to the following:

public interface Connector {

        void connect(WireDefinition wd) throws WiringException;
}

As the Connector has a reference to a ComponentManager, it will be be able to look up source and target, dispatch to InterceptorBuilders based on a QName, build forward and callback chains for the wire, and attach the wire to the source. Meeraj has already checked in WireDefinition as well as posted on the marshalling format, so it may be worth checking that out.

Jim




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to