By creating a package-info.java class in the package and placing the annotation on it.  This is similar to the @Version annotation you see in package-info classes in org.osgi packages.

Tom
 
 
 
----- Original message -----
From: "Leschke, Scott via osgi-dev" <osgi-dev@mail.osgi.org>
Sent by: osgi-dev-boun...@mail.osgi.org
To: "'osgi-dev@mail.osgi.org'" <osgi-dev@mail.osgi.org>
Cc:
Subject: [EXTERNAL] [osgi-dev] @ProviderType and @ConsumerType
Date: Thu, Sep 19, 2019 12:08 PM
 

The JavaDoc for org.osgi.annotation.versioning.ProviderType says:

 

A package can be marked ProviderType. In this case, all types in the package are considered to be a provider type regardless of whether they are marked ConsumerType or ProviderType.

 

How is this intended to be done?

 

Regards,

 

Scott

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev 
 

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to