org.springframework.osgi.test.platform
Interface OsgiPlatform

All Known Implementing Classes:
EquinoxPlatform, FelixPlatform, KnopflerfishPlatform

public interface OsgiPlatform

Lifecycle contract for the OSGi platform.

Author:
Costin Leau

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.
 void start()
          Starts the OSGi platform.
 void stop()
          Stops the OSGi platform.
 

Method Detail

start

void start()
           throws Exception
Starts the OSGi platform.

Throws:
Exception - if starting the platform fails

stop

void stop()
          throws Exception
Stops the OSGi platform.

Throws:
Exception - if stopping the platform fails.

getConfigurationProperties

Properties getConfigurationProperties()
Returns the Properties object used for configuring the underlying OSGi implementation before starting it.

Returns:
platform implementation specific properties

getBundleContext

BundleContext getBundleContext()
Returns the bundle context of the returned platform. Useful during startup for installing bundles and interacting with the OSGi instance.

Returns:
platform bundle context


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