Package org.eclipse.core.runtime
Class ContributorFactoryOSGi
java.lang.Object
org.eclipse.core.runtime.ContributorFactoryOSGi
The contributor factory creates new registry contributors for use in
OSGi-based registries.
This class can not be extended or instantiated by clients.
- Since:
- org.eclipse.equinox.registry 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IContributor
createContributor
(Bundle contributor) Creates registry contributor object based on a Bundle.static Bundle
resolve
(IContributor contributor) Returns the OSGi bundle used to define this contributor.
-
Constructor Details
-
ContributorFactoryOSGi
public ContributorFactoryOSGi()
-
-
Method Details
-
createContributor
Creates registry contributor object based on a Bundle. The bundle must not benull
.- Parameters:
contributor
- bundle associated with the contribution- Returns:
- new registry contributor based on the Bundle
-
resolve
Returns the OSGi bundle used to define this contributor. If a fragment was used to create the contributor, the fragment is returned.The method may return null if the contributor is not based on a bundle, if the bundle can't be found, or if the bundle is presently unresolved or uninstalled.
- Parameters:
contributor
- bundle-based registry contributor- Returns:
- the actual OSGi bundle associated with this contributor
- Since:
- org.eclipse.equinox.registry 3.3
-