|
Lines 1-5
Link Here
|
| 1 |
/* |
1 |
/* |
| 2 |
* Copyright (c) OSGi Alliance (2010). All Rights Reserved. |
2 |
* Copyright (c) OSGi Alliance (2010, 2011). All Rights Reserved. |
| 3 |
* |
3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
5 |
* you may not use this file except in compliance with the License. |
|
Lines 29-36
Link Here
|
| 29 |
* |
29 |
* |
| 30 |
* <p> |
30 |
* <p> |
| 31 |
* The in use bundle wirings for a bundle can be obtained by calling |
31 |
* The in use bundle wirings for a bundle can be obtained by calling |
| 32 |
* {@link Bundle#adapt(Class) bundle.adapt}({@link BundleWirings}.class). |
32 |
* {@link Bundle#adapt(Class) bundle.adapt}({@link BundleWirings}.class) on the |
| 33 |
* {@link BundleWirings#getWirings() getWirings()}. |
33 |
* bundle. {@link BundleWirings#getWirings() getWirings()}. A fragment does not |
|
|
34 |
* itself have bundle wirings. So calling {@link Bundle#adapt(Class) |
| 35 |
* bundle.adapt}({@link BundleWirings}.class) on a fragment must return |
| 36 |
* {@code null}. See {@link FragmentWirings} for the bundle wirings in which a |
| 37 |
* fragment participates. |
| 34 |
* |
38 |
* |
| 35 |
* @ThreadSafe |
39 |
* @ThreadSafe |
| 36 |
* @noimplement |
40 |
* @noimplement |
|
Lines 42-61
Link Here
|
| 42 |
* {@link BundleReference#getBundle() referenced} bundle. |
46 |
* {@link BundleReference#getBundle() referenced} bundle. |
| 43 |
* |
47 |
* |
| 44 |
* <p> |
48 |
* <p> |
| 45 |
* If the referenced bundle is a non-fragment bundle, then the result is a |
49 |
* The result is a list of in use bundle wirings. The list is ordered in |
| 46 |
* list of in use bundle wirings. The list is ordered in reverse |
50 |
* reverse chronological order such that the first bundle wiring is the |
| 47 |
* chronological order such that the first bundle wiring is the |
|
|
| 48 |
* {@link BundleWiring#isCurrent() current} bundle wiring and last wiring is |
51 |
* {@link BundleWiring#isCurrent() current} bundle wiring and last wiring is |
| 49 |
* the oldest in use bundle wiring. |
52 |
* the oldest in use bundle wiring. |
| 50 |
* |
53 |
* |
| 51 |
* <p> |
54 |
* <p> |
| 52 |
* If the referenced bundle is a fragment bundle, then the result is a list |
|
|
| 53 |
* of in use bundle wirings to which the referenced fragment bundle is |
| 54 |
* attached. The ordering of the list is unspecified. If the fragment bundle |
| 55 |
* is not attached to any bundle wiring, then the returned list will be |
| 56 |
* empty. |
| 57 |
* |
| 58 |
* <p> |
| 59 |
* The list must only contain in use bundle wirings. Generally the list will |
55 |
* The list must only contain in use bundle wirings. Generally the list will |
| 60 |
* have at least one bundle wiring for the bundle: the current bundle |
56 |
* have at least one bundle wiring for the bundle: the current bundle |
| 61 |
* wiring. However, for an uninstalled bundle with no in use bundle wirings |
57 |
* wiring. However, for an uninstalled bundle with no in use bundle wirings |