org.apache.geronimo.system.configuration
Class DependencyManager

java.lang.Object
  extended by org.apache.geronimo.system.configuration.DependencyManager
All Implemented Interfaces:
EventListener, org.apache.geronimo.gbean.GBeanLifecycle, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

@GBean
@OsgiService
public class DependencyManager
extends Object
implements org.osgi.framework.SynchronousBundleListener, org.apache.geronimo.gbean.GBeanLifecycle

Version:
$Rev: 1331657 $ $Date: 2012-04-28 10:17:12 +0800 (Sat, 28 Apr 2012) $

Constructor Summary
DependencyManager(org.osgi.framework.BundleContext bundleContext, Collection<org.apache.geronimo.kernel.repository.Repository> repositories, org.apache.geronimo.kernel.repository.ArtifactResolver artifactResolver)
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 org.apache.geronimo.kernel.repository.Artifact getArtifact(long bundleId)
           
 org.osgi.framework.Bundle getBundle(org.apache.geronimo.kernel.repository.Artifact artifact)
           
 PluginArtifactType getCachedPluginMetadata(org.osgi.framework.Bundle bundle)
           
 Set<Long> getDependentBundleIds(org.osgi.framework.Bundle bundle)
           
 List<org.osgi.framework.Bundle> getDependentBundles(org.osgi.framework.Bundle bundle)
           
 Set<org.apache.xbean.osgi.bundle.util.BundleDescription.ExportPackage> getExportedPackages(org.osgi.framework.Bundle bundle)
           
 Set<org.apache.xbean.osgi.bundle.util.BundleDescription.ExportPackage> getExportedPackages(Long bundleId)
           
 Set<Long> getFullDependentBundleIds(org.osgi.framework.Bundle bundle)
           
 Set<Long> getFullDependentBundleIds(Long bundleId)
           
 Set<org.osgi.framework.Bundle> getFullDependentBundles(org.osgi.framework.Bundle bundle)
           
 Set<org.osgi.framework.Bundle> getFullDependentBundles(Long bundleId)
           
 void installed(org.osgi.framework.Bundle bundle)
           
 org.apache.geronimo.kernel.repository.Artifact toArtifact(String installationLocation)
           
 void updatePluginMetadata(org.osgi.framework.Bundle bundle)
           
static void updatePluginMetadata(org.osgi.framework.BundleContext bundleContext, org.osgi.framework.Bundle bundle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyManager

public DependencyManager(@ParamSpecial(type=bundleContext)
                         org.osgi.framework.BundleContext bundleContext,
                         @ParamReference(name="Repositories",namingType="Repository")
                         Collection<org.apache.geronimo.kernel.repository.Repository> repositories,
                         @ParamReference(name="ArtifactResolver",namingType="ArtifactResolver")
                         org.apache.geronimo.kernel.repository.ArtifactResolver artifactResolver)
Method Detail

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

getExportedPackages

public Set<org.apache.xbean.osgi.bundle.util.BundleDescription.ExportPackage> getExportedPackages(org.osgi.framework.Bundle bundle)

getExportedPackages

public Set<org.apache.xbean.osgi.bundle.util.BundleDescription.ExportPackage> getExportedPackages(Long bundleId)

getDependentBundles

public List<org.osgi.framework.Bundle> getDependentBundles(org.osgi.framework.Bundle bundle)

getDependentBundleIds

public Set<Long> getDependentBundleIds(org.osgi.framework.Bundle bundle)

getFullDependentBundles

public Set<org.osgi.framework.Bundle> getFullDependentBundles(org.osgi.framework.Bundle bundle)

getFullDependentBundles

public Set<org.osgi.framework.Bundle> getFullDependentBundles(Long bundleId)

getFullDependentBundleIds

public Set<Long> getFullDependentBundleIds(org.osgi.framework.Bundle bundle)

getFullDependentBundleIds

public Set<Long> getFullDependentBundleIds(Long bundleId)

getBundle

public org.osgi.framework.Bundle getBundle(org.apache.geronimo.kernel.repository.Artifact artifact)

getArtifact

public org.apache.geronimo.kernel.repository.Artifact getArtifact(long bundleId)

toArtifact

public org.apache.geronimo.kernel.repository.Artifact toArtifact(String installationLocation)

updatePluginMetadata

public void updatePluginMetadata(org.osgi.framework.Bundle bundle)

updatePluginMetadata

public static void updatePluginMetadata(org.osgi.framework.BundleContext bundleContext,
                                        org.osgi.framework.Bundle bundle)

getCachedPluginMetadata

public PluginArtifactType getCachedPluginMetadata(org.osgi.framework.Bundle bundle)

installed

public void installed(org.osgi.framework.Bundle bundle)

doStart

public void doStart()
             throws Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle


Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.