blob: dc74584f0828e9b95f1f2436ff8b15b9f5c08537 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2020 Stephan Wahlbrink <sw@wahlbrink.eu> and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.jcommons.runtime.bundle;
import java.util.LinkedHashSet;
import java.util.Set;
import org.eclipse.statet.jcommons.collections.ImList;
import org.eclipse.statet.jcommons.lang.NonNullByDefault;
import org.eclipse.statet.jcommons.status.MultiStatus;
@NonNullByDefault
public interface BundleResolver {
class Data {
private final ImList<? extends BundleEntry> knownEntries;
private final Set<BundleEntry> resolved= new LinkedHashSet<>();
public Data(final ImList<? extends BundleEntry> knownEntries) {
this.knownEntries= knownEntries;
}
public ImList<? extends BundleEntry> getKnownEntries() {
return this.knownEntries;
}
public Set<BundleEntry> getResolved() {
return this.resolved;
}
}
boolean resolveBundle(final Data data, final BundleSpec bundleSpec,
final MultiStatus status);
}