[ 
https://issues.apache.org/jira/browse/ARIES-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835748#action_12835748
 ] 

Alasdair Nottingham commented on ARIES-188:
-------------------------------------------

The intent is that the Application-Content is a set of content that is core to 
the application and as noted in the discussion thread is "isolated". This 
content can be expressed as a range of versions and in the resolve process the 
content is locked down to a specific version within that range.

The resolve process also identifies a set of bundles that are needed to support 
the application, but are not part of the core content. Currently both core, and 
supporting bundles are in the same part of the DeploymentMetadata. I am 
separating them out into two parts. As an example:

Application-Content: a,b

a  depends on b, c
b depends on d, q
q depends on z

This currently results in:

Deployed-Content: a, b, c, d, q, z

This item will change it so we have:

Deployed-Content: a, b
Provision-Content: c, d, q, z

You can thus tell why a bundle is in the deployment metadata quickly and easily 
and this can be used by the ApplicationContextManager when installing the 
application to determine how and where to install the bundles.

In my mental model this separates into Deployed-Content = isolated, 
Provision-Content = shared, but it is down to the ApplicationContextManager to 
put this into practise.

Alasdair

> Separate out the Isolated and Shared bundle content in DeploymentMetadata.java
> ------------------------------------------------------------------------------
>
>                 Key: ARIES-188
>                 URL: https://issues.apache.org/jira/browse/ARIES-188
>             Project: Aries
>          Issue Type: Improvement
>          Components: Application
>            Reporter: Alasdair Nottingham
>            Assignee: Alasdair Nottingham
>
> An Application defines some content and a resolver finds dependencies. The 
> dependencies should be sharable with other applications, but there is no way 
> in the DeploymentMetadata to differentiate shared and non-shared content. 
> This enhancement will separate the two out.
> I also found a bug which I'll fix here. If the Application-Content mentions 
> bundle org.apache.aries.example;version="[1.0.0,2.0.0)" and the resolver may 
> choose version 1.5. The problem is the DeploymentMetadata will set the 
> Deployed-Content to be the minimum version irrespective.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to