Top Description Methods
org.osgi.annotation.bundle

public @Interface Referenced

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:TYPE, PACKAGE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

Mark types as 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.

Author
$Id: decc490d50f3af3eb76857061a324e9540761d92 $

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
value()

A list of referenced classes.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<?>[] value()

A list of referenced classes.

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.