Skip to main content
summaryrefslogtreecommitdiffstats
blob: eb55c22fa523f2714fbccd39c3e9169991df26be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.prov.metadata.repository;

import java.net.URL;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.equinox.prov.core.repository.IRepositoryInfo;
import org.eclipse.equinox.prov.metadata.IInstallableUnit;
import org.eclipse.equinox.prov.query.IQueryable;

/**
 * A metadata repository stores information about a set of installable units
 * <p>
 * Clients may implement this interface.
 * </p>
 * TODO: This should be an abstract class so methods can be added in the future
 * without breaking clients.
 */
public interface IMetadataRepository extends IRepositoryInfo, IQueryable {
	/**
	 * Returns all installable units known to this repository.
	 * @param monitor TODO
	 * @return the installable units known to this repository
	 *TODO: Progress monitor? Is the repository expected to be local?
	 */
	public IInstallableUnit[] getInstallableUnits(IProgressMonitor monitor);

	/**
	 * Returns the URL of this repository.
	 * TODO: Should we use URL or URI? URL requires a protocol handler to be installed
	 * in Java.  Can the URL have any protocol?  Why are we exposing this at all?
	 * @return the URL of this repository.
	 */
	public URL getLocation();
}

Back to the top