org.knopflerfish.framework
Class Bundles

java.lang.Object
  extended by org.knopflerfish.framework.Bundles

public class Bundles
extends java.lang.Object

Here we handle all the bundles that are installed in the framework. Also handles load and save of bundle states to file, so that we can restart the platform.


Method Summary
 Bundle getBundle(long id)
          Get bundle that has specified bundle identifier.
 Bundle getBundle(java.lang.String location)
          Get bundle that has specified bundle location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBundle

public Bundle getBundle(long id)
Get bundle that has specified bundle identifier.

Parameters:
id - The identifier of bundle to get.
Returns:
BundleImpl representing bundle or null if bundle was not found.

getBundle

public Bundle getBundle(java.lang.String location)
Get bundle that has specified bundle location.

Parameters:
location - The location of bundle to get.
Returns:
BundleImpl representing bundle or null if bundle was not found.