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:
org.apache.aries.application.management.spi.framework.BundleFrameworkManager

public class BundleFrameworkManagerImpl
extends Object
implements org.apache.aries.application.management.spi.framework.BundleFrameworkManager


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
org.apache.aries.application.management.spi.framework.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(org.apache.aries.application.DeploymentMetadata newMetadata, org.apache.aries.application.DeploymentMetadata oldMetadata)
           
 void close()
           
 org.apache.aries.application.management.spi.framework.BundleFramework getBundleFramework(org.osgi.framework.Bundle frameworkBundle)
           
 org.apache.aries.application.management.spi.framework.BundleFramework getSharedBundleFramework()
           
 void init()
           
 org.osgi.framework.Bundle installIsolatedBundles(Collection<org.apache.aries.application.management.spi.repository.BundleRepository.BundleSuggestion> bundlesToInstall, org.apache.aries.application.management.AriesApplication app)
           
 Collection<org.osgi.framework.Bundle> installSharedBundles(Collection<org.apache.aries.application.management.spi.repository.BundleRepository.BundleSuggestion> bundlesToInstall, org.apache.aries.application.management.AriesApplication app)
           
 void setBundleContext(org.osgi.framework.BundleContext ctx)
           
 void setBundleFrameworkConfigurationFactory(org.apache.aries.application.management.spi.framework.BundleFrameworkConfigurationFactory bfcf)
           
 void setBundleFrameworkFactory(org.apache.aries.application.management.spi.framework.BundleFrameworkFactory bff)
           
 void setUpdateStrategies(List<org.apache.aries.application.management.spi.update.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(org.apache.aries.application.DeploymentMetadata newMetadata, org.apache.aries.application.DeploymentMetadata oldMetadata, org.apache.aries.application.management.AriesApplication app, org.apache.aries.application.management.spi.framework.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<org.apache.aries.application.management.spi.update.UpdateStrategy> updateStrategies)

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext ctx)

setBundleFrameworkFactory

public void setBundleFrameworkFactory(org.apache.aries.application.management.spi.framework.BundleFrameworkFactory bff)

setBundleFrameworkConfigurationFactory

public void setBundleFrameworkConfigurationFactory(org.apache.aries.application.management.spi.framework.BundleFrameworkConfigurationFactory bfcf)

init

public void init()

close

public void close()

getBundleFramework

public org.apache.aries.application.management.spi.framework.BundleFramework getBundleFramework(org.osgi.framework.Bundle frameworkBundle)
Specified by:
getBundleFramework in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager

installIsolatedBundles

public org.osgi.framework.Bundle installIsolatedBundles(Collection<org.apache.aries.application.management.spi.repository.BundleRepository.BundleSuggestion> bundlesToInstall,
                                                        org.apache.aries.application.management.AriesApplication app)
                                                 throws org.osgi.framework.BundleException
Specified by:
installIsolatedBundles in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
Throws:
org.osgi.framework.BundleException

installSharedBundles

public Collection<org.osgi.framework.Bundle> installSharedBundles(Collection<org.apache.aries.application.management.spi.repository.BundleRepository.BundleSuggestion> bundlesToInstall,
                                                                  org.apache.aries.application.management.AriesApplication app)
                                                           throws org.osgi.framework.BundleException
Specified by:
installSharedBundles in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
Throws:
org.osgi.framework.BundleException

getSharedBundleFramework

public org.apache.aries.application.management.spi.framework.BundleFramework getSharedBundleFramework()
Specified by:
getSharedBundleFramework in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager

uninstallBundle

public void uninstallBundle(org.osgi.framework.Bundle b)
                     throws org.osgi.framework.BundleException
Specified by:
uninstallBundle in interface org.apache.aries.application.management.spi.framework.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 org.apache.aries.application.management.spi.framework.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 org.apache.aries.application.management.spi.framework.BundleFrameworkManager
Throws:
org.osgi.framework.BundleException

allowsUpdate

public boolean allowsUpdate(org.apache.aries.application.DeploymentMetadata newMetadata,
                            org.apache.aries.application.DeploymentMetadata oldMetadata)
Specified by:
allowsUpdate in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager

updateBundles

public void updateBundles(org.apache.aries.application.DeploymentMetadata newMetadata,
                          org.apache.aries.application.DeploymentMetadata oldMetadata,
                          org.apache.aries.application.management.AriesApplication app,
                          org.apache.aries.application.management.spi.framework.BundleFrameworkManager.BundleLocator locator,
                          Set<org.osgi.framework.Bundle> bundles,
                          boolean startBundles)
                   throws org.apache.aries.application.management.UpdateException
Specified by:
updateBundles in interface org.apache.aries.application.management.spi.framework.BundleFrameworkManager
Throws:
org.apache.aries.application.management.UpdateException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.