blob: 172c5f2aa1ff30874ebd2a56417a4da750db11c4 [file] [log] [blame]
Richard S. Halla2dc4512006-04-04 13:17:11 +00001/*
2 * $Header: /cvshome/build/org.osgi.service.obr/src/org/osgi/service/obr/Repository.java,v 1.3 2006/03/16 14:56:17 hargrave Exp $
3 *
4 * Copyright (c) OSGi Alliance (2006). All Rights Reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19// This document is an experimental draft to enable interoperability
20// between bundle repositories. There is currently no commitment to
21// turn this draft into an official specification.
22package org.osgi.service.obr;
23
24import java.net.URL;
25
26/**
27 * Represents a repository.
28 *
29 * @version $Revision: 1.3 $
30 */
31public interface Repository
32{
33 /**
34 * Return the associated URL for the repository.
35 *
36 */
37 URL getURL();
38
39 /**
40 * Return the resources for this repository.
41 */
42 Resource[] getResources();
43
44 /**
Guillaume Nodet66b87bd2010-02-23 11:34:29 +000045 * Return the name of this repository.
Richard S. Halla2dc4512006-04-04 13:17:11 +000046 *
47 * @return a non-null name
48 */
49 String getName();
50
51 long getLastModified();
52
Guillaume Nodet66b87bd2010-02-23 11:34:29 +000053 /**
54 * Returns whether this repository is a local one
55 * or not.
56 *
57 * Local repositories contains resources that are already available
58 * in the OSGi framework and thus will be preferred over other
59 * resources.
60 */
61 boolean isLocal();
62
Richard S. Halla2dc4512006-04-04 13:17:11 +000063}