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 http://www.eclipse.org/legal/epl-v10.html Contributors: VMware Inc. - initial contribution /
package org.eclipse.virgo.kernel.model.internal.deployer;
import  org.eclipse.equinox.region.Region;
final class DeployerBundleArtifact extends DeployerArtifact implements BundleArtifact {
    private final BundleInstallArtifact installArtifact;
    
    public DeployerBundleArtifact(@NonNull BundleContext bundleContext, @NonNull BundleInstallArtifact installArtifact, @NonNull Region region, @NonNull SpringContextAccessor springContextAccessor) {
        super(bundleContextinstallArtifactregion);
        this. = installArtifact;
        this. = springContextAccessor;
    }

    
    public void deleteEntry(String targetPath) {
        this..deleteEntry(targetPath);
    }

    
    public void updateEntry(String inputPathString targetPath) {
        this..updateEntry(URI.create(inputPath), targetPath);
    }

    
    public final Map<StringStringgetProperties() {
        Map<StringStringparentProperties = super.getProperties();
        Map<StringStringproperties = new HashMap<StringString>();
        properties.putAll(parentProperties);
        Bundle bundle = this..getBundle();
        properties.put("Bundle Id", String.valueOf(bundle.getBundleId()));
        properties.put("Spring", String.valueOf(this..isSpringPowered(bundle)));
        return Collections.unmodifiableMap(properties);
    }
    
New to GrepCode? Check out our FAQ X