blob: 377b7aff2a66f6691accf7af7017a68634fde3c4 [file] [log] [blame]
Carsten Ziegeler3314f912014-07-30 07:22:32 +00001/*
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
17package org.osgi.resource.dto;
18
19import java.util.List;
20import org.osgi.dto.DTO;
21import org.osgi.resource.Resource;
22
23/**
24 * Data Transfer Object for a Resource.
25 *
26 * @author $Id$
27 * @NotThreadSafe
28 */
29public 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}