Carsten Ziegeler | 3314f91 | 2014-07-30 07:22:32 +0000 | [diff] [blame^] | 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.resource.dto; |
| 18 | |
| 19 | import java.util.List; |
| 20 | import org.osgi.dto.DTO; |
| 21 | import org.osgi.resource.Resource; |
| 22 | |
| 23 | /** |
| 24 | * Data Transfer Object for a Resource. |
| 25 | * |
| 26 | * @author $Id$ |
| 27 | * @NotThreadSafe |
| 28 | */ |
| 29 | public class ResourceDTO extends DTO { |
| 30 | /** |
| 31 | * The unique identifier of the resource. |
| 32 | * |
| 33 | * <p> |
| 34 | * This identifier is transiently assigned and may vary across restarts. |
| 35 | */ |
| 36 | public int id; |
| 37 | |
| 38 | /** |
| 39 | * The capabilities of the resource. |
| 40 | * |
| 41 | * @see Resource#getCapabilities(String) |
| 42 | */ |
| 43 | public List<CapabilityDTO> capabilities; |
| 44 | |
| 45 | /** |
| 46 | * The requirements of the resource. |
| 47 | * |
| 48 | * @see Resource#getRequirements(String) |
| 49 | */ |
| 50 | public List<RequirementDTO> requirements; |
| 51 | } |