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 /
package org.eclipse.virgo.nano.serviceability.dump.internal;
An implementation of org.eclipse.virgo.medic.dump.DumpContributor that generates a resolution state dump.

Concurrent Semantics

public class ResolutionDumpContributor implements DumpContributor {
    // The following literal must match DependencyCalculator.RESOLUTION_STATE_KEY in the kernel userregion bundle.
    public final static String RESOLUTION_STATE_KEY = "resolution.state";
    public ResolutionDumpContributor(BundleContext bundleContext) {
        PlatformAdmin platformAdmin = bundleContext.getService(bundleContext.getServiceReference(PlatformAdmin.class));
            //OsgiFrameworkUtils.getService(bundleContext, PlatformAdmin.class).getService();
        this. = new ResolutionStateDumper(new StandardSystemStateAccessor(platformAdmin), new StandardStateWriter(platformAdmin.getFactory()));

    public void contribute(Dump dumpthrows DumpContributionFailedException {
        File outputFile = dump.createFile("");
        if (dump.getContext().containsKey()) {
            .dump(outputFile, (Statedump.getContext().get());
        } else {

    public String getName() {
        return "resolution";
New to GrepCode? Check out our FAQ X