Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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 Contributors: VMware Inc. - initial contribution /
Implementation of that delegates to the deployer

Concurrent Semantics

public final class DelegatingInstaller implements Installer {
    private final ApplicationDeployer deployer;
    public DelegatingInstaller(ApplicationDeployer deployerRuntimeArtifactModelObjectNameCreator artifactObjectNameCreator) {
        this. = deployer;
        this. = artifactObjectNameCreator;
    public ObjectName install(String urithrows InstallException {
        DeploymentIdentity deploymentIdentity;
        try {
            deploymentIdentity = this..install(URI.create(uri));
        } catch (DeploymentException e) {
            throw new InstallException(String.format("Exception encountered while installing '%s'"uri), e);
        return this..create(deploymentIdentity.getType(), deploymentIdentity.getSymbolicName(),
            new Version(deploymentIdentity.getVersion()));
New to GrepCode? Check out our FAQ X