|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.metadata.internal.AbstractOSGiMetaData
public abstract class AbstractOSGiMetaData
Abstract OSGi meta data.
| Field Summary | |
|---|---|
protected Map<String,Object> |
cachedAttributes
|
protected ParameterizedAttribute |
parameters
|
| Fields inherited from interface org.jboss.osgi.metadata.OSGiMetaData |
|---|
ANONYMOUS_BUNDLE_SYMBOLIC_NAME |
| Constructor Summary | |
|---|---|
AbstractOSGiMetaData()
|
|
| Method Summary | ||
|---|---|---|
protected
|
get(String key,
ValueCreator<T> creator)
|
|
protected
|
get(String key,
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 |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient Map<String,Object> cachedAttributes
protected transient ParameterizedAttribute parameters
| Constructor Detail |
|---|
public AbstractOSGiMetaData()
| Method Detail |
|---|
protected abstract Map<Attributes.Name,String> getMainAttributes()
protected abstract String getMainAttribute(String key)
public Dictionary<String,String> getHeaders()
OSGiMetaData
getHeaders in interface OSGiMetaDatapublic String getHeader(String key)
OSGiMetaData
getHeader in interface OSGiMetaDatakey - the header key
public ActivationPolicyMetaData getBundleActivationPolicy()
OSGiMetaData
getBundleActivationPolicy in interface OSGiMetaDatapublic String getBundleActivator()
OSGiMetaData
getBundleActivator in interface OSGiMetaDatapublic List<String> getBundleCategory()
OSGiMetaData
getBundleCategory in interface OSGiMetaDatapublic List<String> getBundleClassPath()
OSGiMetaData
getBundleClassPath in interface OSGiMetaDatapublic String getBundleDescription()
OSGiMetaData
getBundleDescription in interface OSGiMetaDatapublic String getBundleLocalization()
OSGiMetaData
getBundleLocalization in interface OSGiMetaDatapublic int getBundleManifestVersion()
OSGiMetaData
getBundleManifestVersion in interface OSGiMetaDatapublic String getBundleName()
OSGiMetaData
getBundleName in interface OSGiMetaDatapublic List<ParameterizedAttribute> getBundleNativeCode()
OSGiMetaData
getBundleNativeCode in interface OSGiMetaDatapublic List<String> getRequiredExecutionEnvironment()
OSGiMetaData
getRequiredExecutionEnvironment in interface OSGiMetaDatapublic String getBundleSymbolicName()
OSGiMetaData
getBundleSymbolicName in interface OSGiMetaDatapublic org.osgi.framework.Version getBundleVersion()
OSGiMetaData
getBundleVersion in interface OSGiMetaDatapublic ParameterizedAttribute getBundleParameters()
OSGiMetaData
getBundleParameters in interface OSGiMetaDatapublic URL getBundleUpdateLocation()
OSGiMetaData
getBundleUpdateLocation in interface OSGiMetaDatapublic List<PackageAttribute> getDynamicImports()
OSGiMetaData
getDynamicImports in interface OSGiMetaDatapublic List<PackageAttribute> getExportPackages()
OSGiMetaData
getExportPackages in interface OSGiMetaDatapublic ParameterizedAttribute getFragmentHost()
OSGiMetaData
getFragmentHost in interface OSGiMetaDatapublic List<PackageAttribute> getImportPackages()
OSGiMetaData
getImportPackages in interface OSGiMetaDatapublic List<ParameterizedAttribute> getRequireBundles()
OSGiMetaData
getRequireBundles in interface OSGiMetaDatapublic List<ParameterizedAttribute> getProvidedCapabilities()
OSGiMetaData
getProvidedCapabilities in interface OSGiMetaDatapublic List<ParameterizedAttribute> getRequiredCapabilities()
OSGiMetaData
getRequiredCapabilities in interface OSGiMetaDatapublic boolean isSingleton()
OSGiMetaData
isSingleton in interface OSGiMetaDatapublic boolean isFragment()
OSGiMetaData
isFragment in interface OSGiMetaDatapublic String getFragmentAttachment()
protected ParameterizedAttribute parseSymbolicName()
protected <T> T get(String key,
ValueCreator<T> creator)
protected <T> T get(String key,
ValueCreator<T> creator,
T defaultValue)
public Map<String,Object> getCachedAttributes()
public OSGiMetaData validate()
throws org.osgi.framework.BundleException
OSGiMetaData
validate in interface OSGiMetaDataorg.osgi.framework.BundleExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||