You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jeremy Boynes <jb...@apache.org> on 2007/01/26 20:29:45 UTC

Model changes to support separate contributions

At the moment the Java configuration model contains references to  
artifacts associated with Java definitions - for example,  
JavaImplementation references the actual Class for the  
implementation. This works fine when all runtimes have access to the  
applicable contribution artifacts that provide these definitions but  
breaks down when we start to distribute the assembly model over a  
heterogeneous domain.

To address this I am going to make changes to the model so that these  
definition references can be represented as simple types - for  
example, instead of using the actual Java Class, use its name and the  
id for the contribution that provides its bytecode.

However, we still need information from these artifacts to determine  
things like the component type, to introspect bindings and other  
annotations, resolve autowires and verify composite structure. To  
support this, I plan to add two new phases to the deployment process:  
resolve and verify. The resolve phase will resolve these abstract  
definitions into concrete model objects e.g. actually loading the  
component type for an implementation. The verify phase will be  
responsible for verifying that any model change is valid to make so  
we can catch errors like duplicate component names.

--
Jeremy



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Model changes to support separate contributions

Posted by Jeremy Boynes <jb...@apache.org>.
Thanks.

Skimmed it once (I'm still painting :-( ) but one thing jumped out  
about the type system. In the contribution service I'm using RFC2045  
Content-Type (aka IANA Media-Type) as the String describing the type  
of the contribution as that is often available if the content is  
being fetched over the web - would that be suitable for use as the  
type here?

We may need to define our own for some things that are not  
standardized yet.
--
Jeremy


On Jan 27, 2007, at 10:55 AM, Raymond Feng wrote:

> Hi,
>
> I have a draft document @ http://cwiki.apache.org/confluence/ 
> display/~rfeng/Artifact+resolvers (You need to register with Apache  
> CWIKI before you can view it). It's not fully updated to reflect  
> the latest deployment story in the SCA spec discussion.
>
> Please review and comment.
>
> Thanks,
> Raymond
>
> ----- Original Message ----- From: "Jeremy Boynes"  
> <jb...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Friday, January 26, 2007 2:50 PM
> Subject: Re: Model changes to support separate contributions
>
>
>> On Jan 26, 2007, at 1:19 PM, Raymond Feng wrote:
>>
>>>
>>> I have been looking into the artifact addressing and resolving.  
>>> I  would like to contribute to this area once you have the two  
>>> new  phases added.
>>
>> Do you have anything you can send to the list for this? It would  
>> be  good be use it in the resolve phase.
>> --
>> Jeremy
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Model changes to support separate contributions

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I have a draft document @ 
http://cwiki.apache.org/confluence/display/~rfeng/Artifact+resolvers (You 
need to register with Apache CWIKI before you can view it). It's not fully 
updated to reflect the latest deployment story in the SCA spec discussion.

Please review and comment.

Thanks,
Raymond

----- Original Message ----- 
From: "Jeremy Boynes" <jb...@apache.org>
To: <tu...@ws.apache.org>
Sent: Friday, January 26, 2007 2:50 PM
Subject: Re: Model changes to support separate contributions


> On Jan 26, 2007, at 1:19 PM, Raymond Feng wrote:
>
>>
>> I have been looking into the artifact addressing and resolving. I  would 
>> like to contribute to this area once you have the two new  phases added.
>
> Do you have anything you can send to the list for this? It would be  good 
> be use it in the resolve phase.
> --
> Jeremy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Model changes to support separate contributions

Posted by Jeremy Boynes <jb...@apache.org>.
On Jan 26, 2007, at 1:19 PM, Raymond Feng wrote:

>
> I have been looking into the artifact addressing and resolving. I  
> would like to contribute to this area once you have the two new  
> phases added.

Do you have anything you can send to the list for this? It would be  
good be use it in the resolve phase.
--
Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Model changes to support separate contributions

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Please see my comments in line.

Thanks,
Raymond

----- Original Message ----- 
From: "Jeremy Boynes" <jb...@apache.org>
To: <tu...@ws.apache.org>
Sent: Friday, January 26, 2007 11:29 AM
Subject: Model changes to support separate contributions


> At the moment the Java configuration model contains references to 
> artifacts associated with Java definitions - for example, 
> JavaImplementation references the actual Class for the  implementation. 
> This works fine when all runtimes have access to the  applicable 
> contribution artifacts that provide these definitions but  breaks down 
> when we start to distribute the assembly model over a  heterogeneous 
> domain.
>

Agree.

> To address this I am going to make changes to the model so that these 
> definition references can be represented as simple types - for  example, 
> instead of using the actual Java Class, use its name and the  id for the 
> contribution that provides its bytecode.

In most of the cases, we can represent the references as either a URI or a 
qualified name as they are declared in the SCDL.

>
> However, we still need information from these artifacts to determine 
> things like the component type, to introspect bindings and other 
> annotations, resolve autowires and verify composite structure. To  support 
> this, I plan to add two new phases to the deployment process:  resolve and 
> verify. The resolve phase will resolve these abstract  definitions into 
> concrete model objects e.g. actually loading the  component type for an 
> implementation. The verify phase will be  responsible for verifying that 
> any model change is valid to make so  we can catch errors like duplicate 
> component names.
>

I have been looking into the artifact addressing and resolving. I would like 
to contribute to this area once you have the two new phases added.

> --
> Jeremy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org