/*******************************************************************************
* Copyright (c) 2008, 2010 VMware Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* VMware Inc. - initial contribution
*******************************************************************************/
package org.eclipse.virgo.kernel.install.pipeline.stage.transform;
import org.eclipse.virgo.kernel.deployer.core.DeploymentException;
import org.eclipse.virgo.kernel.install.artifact.InstallArtifact;
import org.eclipse.virgo.kernel.install.environment.InstallEnvironment;
import org.eclipse.virgo.kernel.install.pipeline.stage.transform.internal.TransformationStage;
import org.eclipse.virgo.util.common.Tree;
/**
* A <code>Transformer</code> is driven during the {@link TransformationStage} of deployment.
* <p />
* A <code>Transformer</code> can be contributed to the transformation stage of deployment by
* publishing it as an OSGi service.
* <p />
*
* <strong>Concurrent Semantics</strong><br />
*
* Implementations <strong>must</strong> be thread-safe.
*
*/
public interface Transformer {
void transform(Tree<InstallArtifact> installTree, InstallEnvironment installEnvironment) throws DeploymentException;
}