Service Management Framework
Release 3.1

com.ibm.osg.smf
Class SMF

java.lang.Object
  |
  +--com.ibm.osg.smf.SMF

public class SMF
extends java.lang.Object

Main class for SMF. This class is used to start SMF for production use. Objects of this class represent an instance of the SMF framework and can be used to control SMF.


Constructor Summary
SMF()
          Constructs a SMF object with a DefaultPlatform (com.ibm.osg.smf.platform.DefaultPlatform).
SMF(Platform platform)
          Constructs a SMF object with the specified Platform.
 
Method Summary
 void close()
          Destroy the SMF framework.
 org.osgi.framework.BundleContext getBundleContext()
          Retrieve the BundleContext for the system bundle.
 boolean isActive()
          This method returns the state of SMF.
 void launch()
          Start the framework.
static void main(java.lang.String[] args)
          main method for SMF.
 void shutdown()
          Stop the framework.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMF

public SMF()
Constructs a SMF object with a DefaultPlatform (com.ibm.osg.smf.platform.DefaultPlatform). This method creates an SMF framework.

SMF

public SMF(Platform platform)
Constructs a SMF object with the specified Platform. This method creates an SMF framework.
Parameters:
platform - A platform object for the framework to use.
Method Detail

main

public static void main(java.lang.String[] args)
main method for SMF. This method creates an SMF object using the default SMF constructor and launches the framework.

close

public void close()
Destroy the SMF framework. This method stops the framework if it has been started. All resources associated with the framework are release and the SMF object is no longer usable.

launch

public void launch()
Start the framework. The framework is started as described in the OSGi Framework specification.

shutdown

public void shutdown()
Stop the framework. The framework is stopped as described in the OSGi Framework specification.

isActive

public boolean isActive()
This method returns the state of SMF.
Returns:
true of the SMF is launched, false if shutdown.

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Retrieve the BundleContext for the system bundle.
Returns:
The system bundle's BundleContext.

Service Management Framework
Release 3.1

Licensed Materials - Property of IBM. (C) Copyright IBM Corp. 2000, 2002 All Rights Reserved. IBM is a registered trademark of IBM Corp.