Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Virgo/Community/Migrating from 3.0.x to 3.5.0"

(Transformer Signature)
(Transformer Signature)
Line 3: Line 3:
 
TBD
 
TBD
  
= Transformer Signature =
+
= Transformer Signature =
  
Transformer services in Virgo 3.5.0 operate in terms of a directed acyclic graph of install artefacts instead of the tree which was used by Virgo 3.0.x.
+
Transformer services in Virgo 3.5.0 operate in terms of a directed acyclic graph of install artefacts instead of the tree which was used by Virgo 3.0.x.  
  
If you provide a Transformer service, you'll need to rework it to implement the modified signature. For example, the WebTransformer.transform method needed to be changed as follows:
+
If you provide a Transformer service, you'll need to rework it to implement the modified signature. For example, the WebTransformer.transform method was changed as follows:  
  
  public void transform(GraphNode<InstallArtifact> installGraph, InstallEnvironment installEnvironment) throws DeploymentException {
+
  public void transform('''GraphNode'''&lt;InstallArtifact&gt; installGraph, InstallEnvironment installEnvironment) throws DeploymentException {
    installGraph.visit(new ExceptionThrowingDirectedAcyclicGraphVisitor<InstallArtifact, DeploymentException>() {
+
    installGraph.visit(new ExceptionThrowing'''DirectedAcyclicGraph'''Visitor&lt;InstallArtifact, DeploymentException&gt;() {
   
+
 
        public boolean visit(GraphNode<InstallArtifact> node) throws DeploymentException {
+
        public boolean visit('''GraphNode'''&lt;InstallArtifact&gt; node) throws DeploymentException {
                InstallArtifact installArtifact = node.getValue();
+
                InstallArtifact installArtifact = node.getValue();
                ...
+
                ...
        }
+
        }
    });
+
    });
 
  }
 
  }

Revision as of 12:08, 28 November 2011

Modified Directory Layout

TBD

Transformer Signature

Transformer services in Virgo 3.5.0 operate in terms of a directed acyclic graph of install artefacts instead of the tree which was used by Virgo 3.0.x.

If you provide a Transformer service, you'll need to rework it to implement the modified signature. For example, the WebTransformer.transform method was changed as follows:

public void transform(GraphNode<InstallArtifact> installGraph, InstallEnvironment installEnvironment) throws DeploymentException {
   installGraph.visit(new ExceptionThrowingDirectedAcyclicGraphVisitor<InstallArtifact, DeploymentException>() {
  
       public boolean visit(GraphNode<InstallArtifact> node) throws DeploymentException {
               InstallArtifact installArtifact = node.getValue();
               ...
       }
   });
}

Copyright © Eclipse Foundation, Inc. All Rights Reserved.