Richard S. Hall | a2dc451 | 2006-04-04 13:17:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * $Header: /cvshome/build/org.osgi.service.obr/src/org/osgi/service/obr/CapabilityProvider.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. |
| 22 | package org.osgi.service.obr; |
| 23 | |
| 24 | /** |
| 25 | * This service interface allows third parties to provide capabilities that are |
| 26 | * present on the system but not encoded in the bundle's manifests. For example, |
| 27 | * a capability provider could provide: |
| 28 | * <ol> |
| 29 | * <li>A Set of certificates</li> |
| 30 | * <li>Dimensions of the screen</li> |
| 31 | * <li>Amount of memory</li> |
| 32 | * <li>...</li> |
| 33 | * </ol> |
| 34 | * |
| 35 | * @version $Revision: 1.3 $ |
| 36 | */ |
| 37 | public interface CapabilityProvider |
| 38 | { |
| 39 | /** |
| 40 | * Return a set of capabilities. |
| 41 | * |
| 42 | * These capabilities are considered part of the platform. Bundles can |
| 43 | * require these capabilities during selection. All capabilities from |
| 44 | * different providers are considered part of the platform. |
| 45 | * |
| 46 | * @return Set of capabilities |
| 47 | */ |
| 48 | Capability[] getCapabilities(); |
| 49 | } |