org.springframework.osgi.test.platform
Class FelixPlatform

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

public class FelixPlatform
extends Object

Apache's Felix OSGi platform.

Author:
Costin Leau

Constructor Summary
FelixPlatform()
           
 
Method Summary
 BundleContext getBundleContext()
          Get a hold of the bundle context of the returned platform.
 Properties getConfigurationProperties()
          Return 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.
 void start()
          Start the OSGi platform.
 void stop()
          Stop the OSGi platform.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FelixPlatform

public FelixPlatform()
Method Detail

getPlatformProperties

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

Returns:

getBundleContext

public BundleContext getBundleContext()
Description copied from interface: OsgiPlatform
Get a hold of the bundle context of the returned platform.

Returns:

start

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

Throws:
Exception

stop

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

Throws:
Exception

getConfigurationProperties

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

Specified by:
getConfigurationProperties in interface OsgiPlatform
Returns:

toString

public String toString()
Overrides:
toString in class Object


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