1 Debian patch touch this file
-
Fix ivy dependencies.
- Author
- Bas Couwenberg <[email protected]>
- Bug
- https://josm.openstreetmap.de/ticket/24839
- Forwarded
- not-needed
| •1 | /* |
| 2 | * Copyright (c) OSGi Alliance (2012, 2014). All Rights Reserved. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.osgi.namespace.service; |
| 18 | |
| 19 | import org.osgi.resource.Namespace; |
| 20 | |
| 21 | /** |
| 22 | * Service Capability and Requirement Namespace. |
| 23 | * |
| 24 | * <p> |
| 25 | * This class defines the names for the attributes and directives for this |
| 26 | * namespace. |
| 27 | * |
| 28 | * <p> |
| 29 | * All unspecified capability attributes are of one of the following types: |
| 30 | * <ul> |
| 31 | * <li>{@code String}</li> |
| 32 | * <li>{@code Version}</li> |
| 33 | * <li>{@code Long}</li> |
| 34 | * <li>{@code Double}</li> |
| 35 | * <li>{@code List<String>}</li> |
| 36 | * <li>{@code List<Version>}</li> |
| 37 | * <li>{@code List<Long>}</li> |
| 38 | * <li>{@code List<Double>}</li> |
| 39 | * </ul> |
| 40 | * and are used as arbitrary matching attributes for the capability. The values |
| 41 | * associated with the specified directive and attribute keys are of type |
| 42 | * {@code String}, unless otherwise indicated. |
| 43 | * |
| 44 | * @Immutable |
| 45 | * @author $Id: b8a17850ffda896054607169eafabed4d14240f8 $ |
| 46 | */ |
| 47 | public final class ServiceNamespace extends Namespace { |
| 48 | |
| 49 | /** |
| 50 | * Namespace name for service capabilities and requirements. |
| 51 | */ |
| 52 | public static final String SERVICE_NAMESPACE = "osgi.service"; |
| 53 | |
| 54 | /** |
| 55 | * The capability attribute used to specify the types of the service. The |
| 56 | * value of this attribute must be of type {@code List<String>}. |
| 57 | * |
| 58 | * <p> |
| 59 | * A {@code ServiceNamespace} capability should express a |
| 60 | * {@link Namespace#CAPABILITY_USES_DIRECTIVE uses constraint} for all the |
| 61 | * packages mentioned in the value of this attribute. |
| 62 | */ |
| 63 | public static final String CAPABILITY_OBJECTCLASS_ATTRIBUTE = "objectClass"; |
| 64 | |
| 65 | private ServiceNamespace() { |
| 66 | // empty |
| 67 | } |
| 68 | } |