@ProviderType public interface MetaTypeService
MetaTypeInformation object.
If the specified bundle does not contain any meta type documents, then a
MetaTypeInformation object will be returned that wrappers any
ManagedService or ManagedServiceFactory services registered
by the specified bundle that implement MetaTypeProvider. Thus the
MetaType Service can be used to retrieve meta type information for bundles
which contain a meta type documents or which provide their own
MetaTypeProvider objects.
| Modifier and Type | Field and Description |
|---|---|
static String |
METATYPE_CAPABILITY_NAME
Capability name for meta type document processors.
|
static String |
METATYPE_DOCUMENTS_LOCATION
Location of meta type documents.
|
| Modifier and Type | Method and Description |
|---|---|
MetaTypeInformation |
getMetaTypeInformation(Bundle bundle)
Return the MetaType information for the specified bundle.
|
static final String METATYPE_DOCUMENTS_LOCATION
static final String METATYPE_CAPABILITY_NAME
Used in Provide-Capability and Require-Capability
manifest headers with the osgi.extender namespace. For example:
Require-Capability: osgi.extender; filter:="(&(osgi.extender=osgi.metatype)(version>=1.3)(!(version>=2.0)))"
MetaTypeInformation getMetaTypeInformation(Bundle bundle)
bundle - The bundle for which meta type information is requested.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0