Debian Codegraph @

bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ISurrogateProfileHandler.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2008, 2013 IBM Corporation and others.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * IBM Corporation - initial API and implementation
13 * Ericsson AB - Bug 400011 - [shared] Cleanup the SurrogateProfileHandler code
14 *******************************************************************************/
15 package org.eclipse.equinox.internal.p2.engine;
16
17 import org.eclipse.core.runtime.IProgressMonitor;
18 import org.eclipse.equinox.p2.engine.IProfile;
19 import org.eclipse.equinox.p2.metadata.IInstallableUnit;
20 import org.eclipse.equinox.p2.query.IQuery;
21 import org.eclipse.equinox.p2.query.IQueryResult;
22
23 /**
24 * @since 2.0
25 */
26 public interface ISurrogateProfileHandler {
27
28 public abstract IProfile createProfile(String id);
29
30 public abstract boolean isSurrogate(IProfile profile);
31
32 public abstract IQueryResult<IInstallableUnit> queryProfile(IProfile profile, IQuery<IInstallableUnit> query, IProgressMonitor monitor);
33
34 }