|
18 | 18 | import java.lang.annotation.Retention;
|
19 | 19 | import java.lang.annotation.RetentionPolicy;
|
20 | 20 | import java.lang.annotation.Target;
|
| 21 | +import org.osgi.framework.Bundle; |
| 22 | +import org.osgi.framework.BundleContext; |
21 | 23 |
|
22 | 24 | /**
|
23 |
| - * A method or field of type {@link org.osgi.framework.BundleContext} and |
24 |
| - * annotated with {@link OSGiBundle} will be injected with the BundleContext |
25 |
| - * from the bundle containing the class if the bundle's state is |
26 |
| - * {@link org.osgi.framework.Bundle#ACTIVE}. |
| 25 | + * A method or field of type {@link BundleContext} and annotated with |
| 26 | + * {@link OSGiBundle} will be injected with the BundleContext from the bundle |
| 27 | + * containing the class if the bundle's state is {@link Bundle#ACTIVE}. |
27 | 28 | * <p>
|
28 |
| - * If the method or field type is of {@link org.osgi.framework.Bundle}, the |
29 |
| - * bundle containing the class will be injected even for bundles in the |
30 |
| - * {@link org.osgi.framework.Bundle#RESOLVED} state. |
| 29 | + * If the method or field type is of {@link Bundle}, the bundle containing the |
| 30 | + * class will be injected even for bundles in the {@link Bundle#RESOLVED} state. |
31 | 31 | * </p>
|
32 | 32 | * <p>
|
33 |
| - * The {@link org.osgi.framework.Bundle} injected will be the |
34 |
| - * {@link org.osgi.framework.Bundle} that supplied the class of the object |
35 |
| - * instance. For example, in: |
| 33 | + * The {@link Bundle} injected will be the {@link Bundle} that supplied the |
| 34 | + * class of the object instance. For example, in: |
36 | 35 | * </p>
|
37 | 36 | *
|
38 | 37 | * <pre>
|
|
47 | 46 | * </pre>
|
48 | 47 | *
|
49 | 48 | * <code>ContextInjectionFactory.make(B.class)</code> will inject the
|
50 |
| - * {@link org.osgi.framework.BundleContext} for the bundle that supplies class |
51 |
| - * B, not class A. |
| 49 | + * {@link BundleContext} for the bundle that supplies class B, not class A. |
52 | 50 | *
|
53 | 51 | * @since 0.16
|
54 | 52 | */
|
|
0 commit comments