blob: 017ea7cc366de436fe9a416f47d79ac6fe65ceb4 [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 org.osgi.dto.DTO;
20import org.osgi.resource.Wire;
21
22/**
23 * Data Transfer Object for a Wire.
24 *
25 * @author $Id$
26 * @NotThreadSafe
27 */
28public class WireDTO extends DTO {
29 /**
30 * Reference to the Capability for the wire.
31 *
32 * @see Wire#getCapability()
33 */
34 public CapabilityRefDTO capability;
35
36 /**
37 * Reference to the Requirement for the wire.
38 *
39 * @see Wire#getRequirement()
40 */
41 public RequirementRefDTO requirement;
42
43 /**
44 * The identifier of the provider resource for the wire.
45 *
46 * @see ResourceDTO#id
47 * @see Wire#getProvider()
48 */
49 public int provider;
50
51 /**
52 * The identifier of the requiring resource for the wire.
53 *
54 * @see ResourceDTO#id
55 * @see Wire#getRequirer()
56 */
57 public int requirer;
58}