org.springframework.osgi.test.platform
Class EquinoxPlatform

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

public class EquinoxPlatform
extends Object

Equinox (3.2.x) OSGi platform.

Author:
Costin Leau

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

EquinoxPlatform

public EquinoxPlatform()
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.