org.apache.aries.application.runtime.framework.management
Class BundleFrameworkManagerImpl

java.lang.Object
  extended by org.apache.aries.application.runtime.framework.management.BundleFrameworkManagerImpl
All Implemented Interfaces:
BundleFrameworkManager

public class BundleFrameworkManagerImpl
extends Object
implements BundleFrameworkManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
BundleFrameworkManager.BundleLocator
 
Field Summary
 
Fields inherited from interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
SHARED_FRAMEWORK_LOCK
 
Constructor Summary
BundleFrameworkManagerImpl()
           
 
Method Summary
 boolean allowsUpdate(DeploymentMetadata newMetadata, DeploymentMetadata oldMetadata)
           
 BundleFramework getBundleFramework(org.osgi.framework.Bundle frameworkBundle)
           
 BundleFramework getSharedBundleFramework()
           
 void init()
           
 org.osgi.framework.Bundle installIsolatedBundles(Collection<BundleRepository.BundleSuggestion> bundlesToInstall, AriesApplication app)
           
 Collection<org.osgi.framework.Bundle> installSharedBundles(Collection<BundleRepository.BundleSuggestion> bundlesToInstall, AriesApplication app)
           
 void setBundleContext(org.osgi.framework.BundleContext ctx)
           
 void setBundleFrameworkConfigurationFactory(BundleFrameworkConfigurationFactory bfcf)
           
 void setBundleFrameworkFactory(BundleFrameworkFactory bff)
           
 void setUpdateStrategies(List<UpdateStrategy> updateStrategies)
           
 void startBundle(org.osgi.framework.Bundle b)
           
 void stopBundle(org.osgi.framework.Bundle b)
           
 void uninstallBundle(org.osgi.framework.Bundle b)
           
 void updateBundles(DeploymentMetadata newMetadata, DeploymentMetadata oldMetadata, AriesApplication app, BundleFrameworkManager.BundleLocator locator, Set<org.osgi.framework.Bundle> bundles, boolean startBundles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleFrameworkManagerImpl

public BundleFrameworkManagerImpl()
Method Detail

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.