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.3+) 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. This implementation considers existing system properties as well as platform specific ones, defined in this class.
 void start()
          Starts the OSGi platform.
 void stop()
          Stops the OSGi platform.
 String toString()
          Returns the underlying OSGi platform name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FelixPlatform

public FelixPlatform()
Method Detail

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()
Returns the Properties object used for configuring the underlying OSGi implementation before starting it. This implementation considers existing system properties as well as platform specific ones, defined in this class. The system properties are convenient for changing the configuration directly from the command line (useful for CI builds) leaving the programmer to ultimately decide the actual configuration used.

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

toString

public String toString()
Returns the underlying OSGi platform name.

Overrides:
toString in class Object
Returns:
the platform name


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