001    /*
002     * $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 $
003     *
004     * Copyright (c) OSGi Alliance (2006). All Rights Reserved.
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *      http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     */
018    
019    // This document is an experimental draft to enable interoperability
020    // between bundle repositories. There is currently no commitment to 
021    // turn this draft into an official specification.  
022    package org.osgi.service.obr;
023    
024    /**
025     * This service interface allows third parties to provide capabilities that are
026     * present on the system but not encoded in the bundle's manifests. For example,
027     * a capability provider could provide:
028     * <ol>
029     * <li>A Set of certificates</li>
030     * <li>Dimensions of the screen</li>
031     * <li>Amount of memory</li>
032     * <li>...</li>
033     * </ol>
034     * 
035     * @version $Revision: 1.3 $
036     */
037    public interface CapabilityProvider
038    {
039        /**
040         * Return a set of capabilities.
041         * 
042         * These capabilities are considered part of the platform. Bundles can
043         * require these capabilities during selection. All capabilities from
044         * different providers are considered part of the platform.
045         * 
046         * @return Set of capabilities
047         */
048        Capability[] getCapabilities();
049    }