blob: 804e5f0ef5e7aec72cd58e7c16e002bd902304af [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/Capability.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.util.Map;
25
26/**
27 * A named set of properties representing some capability that is provided by
28 * its owner.
29 *
30 * @version $Revision: 1.3 $
31 */
32public interface Capability
33{
34 /**
35 * Return the name of the capability.
36 *
37 */
38 String getName();
39
40 /**
41 * Return the set of properties.
42 *
43 * Notice that the value of the properties is a list of values.
44 *
45 * @return a Map<String,List>
46 */
47 Map getProperties();
48}