The assembly model does not contain the annotated intent information
--------------------------------------------------------------------
Key: TUSCANY-1539
URL: https://issues.apache.org/jira/browse/TUSCANY-1539
Project: Tuscany
Issue Type: Improvement
Components: Java SCA Assembly Model
Environment: r558780
Reporter: Yang Lei
I am following JavaAnnotationsAndAPIs section 2.3.1 and 2.4 to create an sample
with both intent annotation and SCDL file. I realize no matter I define intents
or not in SCDL, it is alreays the SCDL version get picked up. I use the
following code to load the composite model:
EmbeddedSCADomain domain= new
EmbeddedSCADomain(this.getClass().getClassLoader(),"http://"+name);
domain.start();
ModelResolver resolver = new ModelResolverImpl(cl);
ContributionService service=
util.getDomain(null).getContributionService();
service.contribute(contributionId, contributionLocation,
resolver, false);
r service.getContribution(contributionId);
I use the following code to display the composite :
Composite composite =null;
for (DeployedArtifact artifact : contribution.getArtifacts()) {
if (artifact.getModel() instanceof Composite) {
if (artifact.getURI().toString().endsWith("default.composite"))
{
composite = ((Composite)artifact.getModel());
break;
}
}
}
if (composite!=null)
{
System.out.println("this is the artifact");
display(composite);
System.out.println("this is the added composite");
domain.getDomainCompositeHelper().addComposite(composite);
display(composite);
System.out.println("this is the started composite");
domain.getDomainCompositeHelper().startComposite(composite);
display(composite);
}
Under all 3 cases, the composite does not contain the annotated intent setting
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]