Hi, Sebastien.
I just committed a change in the CompositeUtil with the
createSelfReferences(Component ...), but it's not hooked yet. Would you
please help to get it integrated?
Thanks,
Raymond
----- Original Message -----
From: "Jean-Sebastien Delfino" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 01, 2007 10:33 AM
Subject: Re: Create self-references for a component/componentType
Raymond Feng wrote:
Hi,
The ComponentContext API defines a method to create self reference to a
component service. Would it make sense that we create self-references for
all the services for a component/componentType during the "wire" phase of
the assembly model? If so, we will be able to handle the runtime
invocation chains consistently.
Let's assume there's a service in the component type:
name: MyService
bindings: SCA binding and WS binding
Then the self reference will be created on the component type as follows.
name: $self$_MyService (something derived from the service name)
bindings: SCA binding and WS binding
target: The corresponding component service for MyService with a name
<MyComponent>/MyService
wiredByImpl/autowire: true
Please note that we need to have the component name (not available from
the componentType) to add the target.
Thanks,
Raymond
That makes sense to me. I can help and add the code to create these self
references during the wiring phase if you want.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]