org.eclipse.osgi.framework.internal.core
Class BundleRepository

java.lang.Object
  extended by org.eclipse.osgi.framework.internal.core.BundleRepository

public final class BundleRepository
extends 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 internally synchronized and supports client locking. Clients wishing to perform threadsafe composite operations on instances of this class can synchronize on the instance itself when doing these operations.


Constructor Summary
BundleRepository(int initialCapacity)
           
 
Method Summary
 void add(AbstractBundle bundle)
           
 AbstractBundle getBundle(long bundleId)
          Gets a bundle by its bundle Id.
 List<AbstractBundle> getBundles()
          Gets a list of bundles ordered by install order.
 AbstractBundle[] getBundles(String symbolicName)
           
 List<AbstractBundle> getBundles(String symbolicName, Version version)
           
 boolean remove(AbstractBundle bundle)
           
 void removeAllBundles()
           
 void update(String oldSymbolicName, AbstractBundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleRepository

public BundleRepository(int initialCapacity)
Method Detail

getBundles

public List<AbstractBundle> 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(String symbolicName)

getBundles

public List<AbstractBundle> getBundles(String symbolicName,
                                       Version version)

add

public void add(AbstractBundle bundle)

remove

public boolean remove(AbstractBundle bundle)

update

public void update(String oldSymbolicName,
                   AbstractBundle bundle)

removeAllBundles

public void removeAllBundles()


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.