public final class BundleRepository extends Object
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 and Description |
---|
BundleRepository(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
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) |
public List<AbstractBundle> getBundles()
public AbstractBundle getBundle(long bundleId)
bundleId
- public AbstractBundle[] getBundles(String symbolicName)
public List<AbstractBundle> getBundles(String symbolicName, Version version)
public void add(AbstractBundle bundle)
public boolean remove(AbstractBundle bundle)
public void update(String oldSymbolicName, AbstractBundle bundle)
public void removeAllBundles()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.