org.apache.felix.dm.runtime
Class DependencyManagerRuntime

java.lang.Object
  extended by org.apache.felix.dm.runtime.DependencyManagerRuntime

public class DependencyManagerRuntime
extends Object

This class parses service descriptors generated by the annotation bnd processor. The descriptors are located under OSGI-INF/dependencymanager directory. Such files are actually referenced by a specific "DependendencyManager-Component" manifest header.


Constructor Summary
DependencyManagerRuntime()
          Our constructor.
 
Method Summary
protected  void bundleStarted(Bundle b)
          Checks if a started bundle have some DependencyManager descriptors referenced in the "DependencyManager-Component" OSGi header.
protected  void bundleStopped(Bundle b)
          Unregisters all services for a stopping bundle.
protected  Object[] getComposition()
          Return our Object Composition (the Activator will inject dependencies into it)
protected  void start()
          Starts our Service (at this point, we have been injected with our bundle context, as well as with our log service.
protected  void stop()
          Stops our service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyManagerRuntime

public DependencyManagerRuntime()
Our constructor. We'll initialize here our DM component builders.

Method Detail

getComposition

protected Object[] getComposition()
Return our Object Composition (the Activator will inject dependencies into it)


start

protected void start()
Starts our Service (at this point, we have been injected with our bundle context, as well as with our log service. We'll listen to bundle start/stop events (we implement the SynchronousBundleListener interface).


stop

protected void stop()
Stops our service. We'll stop all activated DependencyManager services.


bundleStarted

protected void bundleStarted(Bundle b)
Checks if a started bundle have some DependencyManager descriptors referenced in the "DependencyManager-Component" OSGi header.

Parameters:
b - the started bundle.

bundleStopped

protected void bundleStopped(Bundle b)
Unregisters all services for a stopping bundle.

Parameters:
b -


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.