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.
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 | + | 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 | + | public void transform('''GraphNode'''<InstallArtifact> installGraph, InstallEnvironment installEnvironment) throws DeploymentException { |
− | + | installGraph.visit(new ExceptionThrowing'''DirectedAcyclicGraph'''Visitor<InstallArtifact, DeploymentException>() { | |
− | + | ||
− | + | public boolean visit('''GraphNode'''<InstallArtifact> node) throws DeploymentException { | |
− | + | 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(); ... } }); }