The package must also be annotation with the Version annotation to
specify the export version of the package.
This annotation is not retained at runtime. It is for use by tools to generate bundle manifests or otherwise process the package.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Export.
Substitution policy for this package. |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public String | |
| public String[] |
| attribute | back to summary |
|---|---|
| public String[] attribute() A list of attribute or directive names and values. Each string should be specified in the form:
| |
| substitution | back to summary |
|---|---|
| public String substitution() Specify the policy for substitutably importing this package. Bundles that collaborate require the same class loader for types used in the collaboration. If multiple bundles export packages with collaboration types then they will have to be placed in disjoint class spaces, making collaboration impossible. Collaboration is significantly improved when bundles are willing to import exported packages; these imports will allow a framework to substitute exports for imports.
If not specified, the | |
| uses | back to summary |
|---|---|
| public String[] uses() A list of package names that are used by this package.
If the
If not specified, the | |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CALCULATED
The policy value is calculated by inspection of the classes in the package. |
| public static final String | CONSUMER
Use a consumer type version range for the import package clause when substitutably importing a package. |
| public static final String | NOIMPORT
The package must not be substitutably imported. |
| public static final String | PROVIDER
Use a provider type version range for the import package clause when substitutably importing a package. |
| Access | Constructor and Description |
|---|---|
| private |
| CALCULATED | back to summary |
|---|---|
| public static final String CALCULATED The policy value is calculated by inspection of the classes in the package. | |
| CONSUMER | back to summary |
|---|---|
| public static final String CONSUMER Use a consumer type version range for the import package clause when substitutably importing a package.
| |
| NOIMPORT | back to summary |
|---|---|
| public static final String NOIMPORT The package must not be substitutably imported. | |
| PROVIDER | back to summary |
|---|---|
| public static final String PROVIDER Use a provider type version range for the import package clause when substitutably importing a package.
| |
| Substitution | back to summary |
|---|---|
| private Substitution() | |