blob: 8dc3844e57eae338ddc2565e20b93360ea390382 [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.Wiring;
22
23/**
24 * Data Transfer Object for a Wiring node.
25 *
26 * @author $Id$
27 * @NotThreadSafe
28 */
29public class WiringDTO extends DTO {
30 /**
31 * The unique identifier of the wiring node.
32 *
33 * <p>
34 * This identifier is transiently assigned and may vary across restarts.
35 */
36 public int id;
37
38 /**
39 * The references to the capabilities for the wiring node.
40 *
41 * @see Wiring#getResourceCapabilities(String)
42 */
43 public List<CapabilityRefDTO> capabilities;
44
45 /**
46 * The references to the requirements for the wiring node.
47 *
48 * @see Wiring#getResourceRequirements(String)
49 */
50 public List<RequirementRefDTO> requirements;
51
52 /**
53 * The provided wires for the wiring node.
54 *
55 * @see Wiring#getProvidedResourceWires(String)
56 */
57 public List<WireDTO> providedWires;
58
59 /**
60 * The required wires for the wiring node.
61 *
62 * @see Wiring#getRequiredResourceWires(String)
63 */
64 public List<WireDTO> requiredWires;
65
66 /**
67 * The identifier of the resource associated with the wiring node.
68 *
69 * @see ResourceDTO#id
70 * @see Wiring#getResource()
71 */
72 public int resource;
73}