blob: 6b8340173b83ec33aad7ca68771c9f1fe22088f0 [file] [log] [blame]
David Jenckse165efc2014-06-15 01:09:26 +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.framework.dto;
18
19import org.osgi.dto.DTO;
20import org.osgi.framework.Bundle;
21
22/**
23 * Data Transfer Object for a Bundle.
24 *
25 * <p>
26 * A Bundle can be adapted to provide a {@code BundleDTO} for the Bundle.
27 *
28 * @author $Id: aa30709351d8fe70b19c9ea99456ebd15ecab7c3 $
29 * @NotThreadSafe
30 */
31public class BundleDTO extends DTO {
32 /**
33 * The bundle's unique identifier.
34 *
35 * @see Bundle#getBundleId()
36 */
37 public long id;
38
39 /**
40 * The time when the bundle was last modified.
41 *
42 * @see Bundle#getLastModified()
43 */
44 public long lastModified;
45
46 /**
47 * The bundle's state.
48 *
49 * @see Bundle#getState()
50 */
51 public int state;
52
53 /**
54 * The bundle's symbolic name.
55 *
56 * @see Bundle#getSymbolicName()
57 */
58 public String symbolicName;
59
60 /**
61 * The bundle's version.
62 *
63 * @see Bundle#getVersion()
64 */
65 public String version;
66}