org.springframework.osgi.test.platform
Class KnopflerfishPlatform

java.lang.Object
  extended by org.springframework.osgi.test.platform.KnopflerfishPlatform
All Implemented Interfaces:
OsgiPlatform

public class KnopflerfishPlatform
extends Object

Knopflerfish 2.0.x Platform.

Author:
Costin Leau

Constructor Summary
KnopflerfishPlatform()
           
 
Method Summary
 BundleContext getBundleContext()
          Returns the bundle context of the returned platform.
 Properties getConfigurationProperties()
          Returns the Properties object used for configuring the underlying OSGi implementation before starting it.
protected  Properties getPlatformProperties()
          Subclasses can override this to provide special platform properties.
protected  String loadSystemPackages()
           
 void start()
          Starts the OSGi platform.
 void stop()
          Stops the OSGi platform.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KnopflerfishPlatform

public KnopflerfishPlatform()
Method Detail

getPlatformProperties

protected Properties getPlatformProperties()
Subclasses can override this to provide special platform properties.

Returns:
platform implementation specific properties.

loadSystemPackages

protected String loadSystemPackages()

getBundleContext

public BundleContext getBundleContext()
Description copied from interface: OsgiPlatform
Returns the bundle context of the returned platform. Useful during startup for installing bundles and interacting with the OSGi instance.

Returns:
platform bundle context

start

public void start()
           throws Exception
Description copied from interface: OsgiPlatform
Starts the OSGi platform.

Throws:
Exception - if starting the platform fails

stop

public void stop()
          throws Exception
Description copied from interface: OsgiPlatform
Stops the OSGi platform.

Throws:
Exception - if stopping the platform fails.

getConfigurationProperties

public Properties getConfigurationProperties()
Description copied from interface: OsgiPlatform
Returns the Properties object used for configuring the underlying OSGi implementation before starting it.

Specified by:
getConfigurationProperties in interface OsgiPlatform
Returns:
platform implementation specific properties

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008 Spring Framework. All Rights Reserved.