org.apache.aries.application.runtime.framework.management
Class BundleFrameworkManagerImpl
java.lang.Object
org.apache.aries.application.runtime.framework.management.BundleFrameworkManagerImpl
- All Implemented Interfaces:
- BundleFrameworkManager
public class BundleFrameworkManagerImpl
- extends Object
- implements BundleFrameworkManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleFrameworkManagerImpl
public BundleFrameworkManagerImpl()
setUpdateStrategies
public void setUpdateStrategies(List<UpdateStrategy> updateStrategies)
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext ctx)
setBundleFrameworkFactory
public void setBundleFrameworkFactory(BundleFrameworkFactory bff)
setBundleFrameworkConfigurationFactory
public void setBundleFrameworkConfigurationFactory(BundleFrameworkConfigurationFactory bfcf)
init
public void init()
getBundleFramework
public BundleFramework getBundleFramework(org.osgi.framework.Bundle frameworkBundle)
- Specified by:
getBundleFramework
in interface BundleFrameworkManager
installIsolatedBundles
public org.osgi.framework.Bundle installIsolatedBundles(Collection<BundleRepository.BundleSuggestion> bundlesToInstall,
AriesApplication app)
throws org.osgi.framework.BundleException
- Specified by:
installIsolatedBundles
in interface BundleFrameworkManager
- Throws:
org.osgi.framework.BundleException
installSharedBundles
public Collection<org.osgi.framework.Bundle> installSharedBundles(Collection<BundleRepository.BundleSuggestion> bundlesToInstall,
AriesApplication app)
throws org.osgi.framework.BundleException
- Specified by:
installSharedBundles
in interface BundleFrameworkManager
- Throws:
org.osgi.framework.BundleException
getSharedBundleFramework
public BundleFramework getSharedBundleFramework()
- Specified by:
getSharedBundleFramework
in interface BundleFrameworkManager
uninstallBundle
public void uninstallBundle(org.osgi.framework.Bundle b)
throws org.osgi.framework.BundleException
- Specified by:
uninstallBundle
in interface BundleFrameworkManager
- Throws:
org.osgi.framework.BundleException
startBundle
public void startBundle(org.osgi.framework.Bundle b)
throws org.osgi.framework.BundleException
- Specified by:
startBundle
in interface BundleFrameworkManager
- Throws:
org.osgi.framework.BundleException
stopBundle
public void stopBundle(org.osgi.framework.Bundle b)
throws org.osgi.framework.BundleException
- Specified by:
stopBundle
in interface BundleFrameworkManager
- Throws:
org.osgi.framework.BundleException
allowsUpdate
public boolean allowsUpdate(DeploymentMetadata newMetadata,
DeploymentMetadata oldMetadata)
- Specified by:
allowsUpdate
in interface BundleFrameworkManager
updateBundles
public void updateBundles(DeploymentMetadata newMetadata,
DeploymentMetadata oldMetadata,
AriesApplication app,
BundleFrameworkManager.BundleLocator locator,
Set<org.osgi.framework.Bundle> bundles,
boolean startBundles)
throws UpdateException
- Specified by:
updateBundles
in interface BundleFrameworkManager
- Throws:
UpdateException
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.