org.eclipse.osgi.framework.internal.core
Class BundleRepository
java.lang.Object
org.eclipse.osgi.framework.internal.core.BundleRepository
public class BundleRepository
- extends java.lang.Object
The BundleRepository holds all installed Bundle object for the
Framework. The BundleRepository is also used to mark and unmark
bundle dependancies.
This class is not synchronized. Any access to the bundle
repository must be synchronized by the caller.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleRepository
public BundleRepository(int initialCapacity)
getBundles
public java.util.List getBundles()
- Gets a list of bundles ordered by install order.
- Returns:
- List of bundles by install order.
getBundle
public AbstractBundle getBundle(long bundleId)
- Gets a bundle by its bundle Id.
- Parameters:
bundleId
-
- Returns:
- a bundle with the specified id or null if one does not exist
getBundles
public AbstractBundle[] getBundles(java.lang.String symbolicName)
getBundle
public AbstractBundle getBundle(java.lang.String symbolicName,
Version version)
add
public void add(AbstractBundle bundle)
remove
public boolean remove(AbstractBundle bundle)
removeAllBundles
public void removeAllBundles()