@Documented
@Retention(value=CLASS)
@Target(value={TYPE,PACKAGE})
public @interface Referenced
A reference can cause the package of a specified type to be imported if the bundle does not contain the package.
This annotation is not retained at runtime. It is for use by tools to generate bundle manifests.
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?>[] |
value
A list of referenced classes.
|
public abstract java.lang.Class<?>[] value
Specifying a class in this annotation must be treated by tools as if the annotated type has a code reference to the class which may result in an import of the package of the class if the bundle does not contain that package.
Copyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0