org.apache.aries.application.utils.management
Class SimpleBundleInfo
java.lang.Object
org.apache.aries.application.utils.management.SimpleBundleInfo
- All Implemented Interfaces:
- BundleInfo
public final class SimpleBundleInfo
- extends Object
- implements BundleInfo
SimpleBundleInfo
public SimpleBundleInfo(BundleManifest bm,
String location)
getExportPackage
public Set<Content> getExportPackage()
- Specified by:
getExportPackage in interface BundleInfo
getExportService
public Set<Content> getExportService()
- Specified by:
getExportService in interface BundleInfo
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeaders in interface BundleInfo
getImportPackage
public Set<Content> getImportPackage()
- Specified by:
getImportPackage in interface BundleInfo
getImportService
public Set<Content> getImportService()
- Specified by:
getImportService in interface BundleInfo
getLocation
public String getLocation()
- Specified by:
getLocation in interface BundleInfo
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName in interface BundleInfo
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersion in interface BundleInfo
getBundleAttributes
public Map<String,String> getBundleAttributes()
- Specified by:
getBundleAttributes in interface BundleInfo
getBundleDirectives
public Map<String,String> getBundleDirectives()
- Specified by:
getBundleDirectives in interface BundleInfo
getRequireBundle
public Set<Content> getRequireBundle()
- Specified by:
getRequireBundle in interface BundleInfo
equals
public boolean equals(Object other)
- Equality is just based on the location. If you install a bundle from the same location string
you get the same Bundle, even if the underlying bundle had a different symbolic name/version.
This seems reasonable and quick.
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
getRawAttributes
public Attributes getRawAttributes()
- Specified by:
getRawAttributes in interface BundleInfo
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.