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 Felix (1.0.x) OSGi platform.

Author:
Costin Leau

Constructor Summary
FelixPlatform()
           
 
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.
 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

FelixPlatform

public FelixPlatform()
Method Detail

getPlatformProperties

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

Returns:
platform implementation specific properties.

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.