public abstract class AbstractOSGiMetaData extends Object implements OSGiMetaData
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
cachedAttributes |
protected ParameterizedAttribute |
parameters |
ANONYMOUS_BUNDLE_SYMBOLIC_NAME| Constructor and Description |
|---|
AbstractOSGiMetaData() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
get(String key,
org.jboss.osgi.metadata.internal.ValueCreator<T> creator) |
protected <T> T |
get(String key,
org.jboss.osgi.metadata.internal.ValueCreator<T> creator,
T defaultValue) |
ActivationPolicyMetaData |
getBundleActivationPolicy()
Get bundle activation policy.
|
String |
getBundleActivator()
Get bundle activator class name.
|
List<String> |
getBundleCategory()
Get the bundle category
|
List<String> |
getBundleClassPath()
Get the bundle classpath
|
String |
getBundleDescription()
Get the description
|
String |
getBundleLocalization()
Get the localization's location
|
int |
getBundleManifestVersion()
Get the bundle manifest version
|
String |
getBundleName()
Get the name
|
List<ParameterizedAttribute> |
getBundleNativeCode()
Get native code libs
|
ParameterizedAttribute |
getBundleParameters()
Get the bundle parameters
|
String |
getBundleSymbolicName()
Get bundle symbolic name.
|
URL |
getBundleUpdateLocation()
Get the update url.
|
org.osgi.framework.Version |
getBundleVersion()
Get bundle's version.
|
Map<String,Object> |
getCachedAttributes() |
List<PackageAttribute> |
getDynamicImports()
Get dynamic imports.
|
List<PackageAttribute> |
getExportPackages()
Get the export packages.
|
String |
getFragmentAttachment() |
ParameterizedAttribute |
getFragmentHost()
Get the fragment host.
|
String |
getHeader(String key)
Extension point to read custom manifest headers.
|
Dictionary<String,String> |
getHeaders()
Get the headers in raw unlocalized format.
|
List<PackageAttribute> |
getImportPackages()
Get the import packages.
|
protected abstract String |
getMainAttribute(String key) |
protected abstract Map<Attributes.Name,String> |
getMainAttributes() |
List<ParameterizedAttribute> |
getProvidedCapabilities()
Get the provided capabilities
|
List<ParameterizedAttribute> |
getRequireBundles()
Get the required exports
|
List<ParameterizedAttribute> |
getRequiredCapabilities()
Get the required capabilities
|
List<String> |
getRequiredExecutionEnvironment()
Get required exectuion envs
|
boolean |
isFragment()
Whether the bundle is a fragment
|
boolean |
isSingleton()
Whether the bundle is a singleton
|
protected ParameterizedAttribute |
parseSymbolicName() |
String |
toString() |
OSGiMetaData |
validate()
Validate the this metadata
|
protected transient ParameterizedAttribute parameters
protected abstract Map<Attributes.Name,String> getMainAttributes()
public Dictionary<String,String> getHeaders()
OSGiMetaDatagetHeaders in interface OSGiMetaDatapublic String getHeader(String key)
OSGiMetaDatagetHeader in interface OSGiMetaDatakey - the header keypublic ActivationPolicyMetaData getBundleActivationPolicy()
OSGiMetaDatagetBundleActivationPolicy in interface OSGiMetaDatapublic String getBundleActivator()
OSGiMetaDatagetBundleActivator in interface OSGiMetaDatapublic List<String> getBundleCategory()
OSGiMetaDatagetBundleCategory in interface OSGiMetaDatapublic List<String> getBundleClassPath()
OSGiMetaDatagetBundleClassPath in interface OSGiMetaDatapublic String getBundleDescription()
OSGiMetaDatagetBundleDescription in interface OSGiMetaDatapublic String getBundleLocalization()
OSGiMetaDatagetBundleLocalization in interface OSGiMetaDatapublic int getBundleManifestVersion()
OSGiMetaDatagetBundleManifestVersion in interface OSGiMetaDatapublic String getBundleName()
OSGiMetaDatagetBundleName in interface OSGiMetaDatapublic List<ParameterizedAttribute> getBundleNativeCode()
OSGiMetaDatagetBundleNativeCode in interface OSGiMetaDatapublic List<String> getRequiredExecutionEnvironment()
OSGiMetaDatagetRequiredExecutionEnvironment in interface OSGiMetaDatapublic String getBundleSymbolicName()
OSGiMetaDatagetBundleSymbolicName in interface OSGiMetaDatapublic org.osgi.framework.Version getBundleVersion()
OSGiMetaDatagetBundleVersion in interface OSGiMetaDatapublic ParameterizedAttribute getBundleParameters()
OSGiMetaDatagetBundleParameters in interface OSGiMetaDatapublic URL getBundleUpdateLocation()
OSGiMetaDatagetBundleUpdateLocation in interface OSGiMetaDatapublic List<PackageAttribute> getDynamicImports()
OSGiMetaDatagetDynamicImports in interface OSGiMetaDatapublic List<PackageAttribute> getExportPackages()
OSGiMetaDatagetExportPackages in interface OSGiMetaDatapublic ParameterizedAttribute getFragmentHost()
OSGiMetaDatagetFragmentHost in interface OSGiMetaDatapublic List<PackageAttribute> getImportPackages()
OSGiMetaDatagetImportPackages in interface OSGiMetaDatapublic List<ParameterizedAttribute> getRequireBundles()
OSGiMetaDatagetRequireBundles in interface OSGiMetaDatapublic List<ParameterizedAttribute> getProvidedCapabilities()
OSGiMetaDatagetProvidedCapabilities in interface OSGiMetaDatapublic List<ParameterizedAttribute> getRequiredCapabilities()
OSGiMetaDatagetRequiredCapabilities in interface OSGiMetaDatapublic boolean isSingleton()
OSGiMetaDataisSingleton in interface OSGiMetaDatapublic boolean isFragment()
OSGiMetaDataisFragment in interface OSGiMetaDatapublic String getFragmentAttachment()
protected ParameterizedAttribute parseSymbolicName()
protected <T> T get(String key, org.jboss.osgi.metadata.internal.ValueCreator<T> creator)
protected <T> T get(String key, org.jboss.osgi.metadata.internal.ValueCreator<T> creator, T defaultValue)
public OSGiMetaData validate() throws org.osgi.framework.BundleException
OSGiMetaDatavalidate in interface OSGiMetaDataorg.osgi.framework.BundleExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.