Service Management Framework
Release 3.1

com.ibm.osg.smf.platform
Interface Framework


public interface Framework

Framework interface for SMF.

This interface is used to provide a Platform object access to framework functions.


Method Summary
 org.osgi.framework.Bundle createBundle(long id, BundleFile file, java.lang.Object localStore, java.lang.String location)
          Creates a Bundle object.
 java.lang.Object getLocalStore(org.osgi.framework.Bundle bundle)
          Returns the localStore object with which the bundle was created.
 void publishFrameworkEvent(int type, org.osgi.framework.Bundle bundle, java.lang.Throwable throwable)
          Publish a FrameworkEvent.
 java.util.Vector selectNativeCode(org.osgi.framework.Bundle bundle)
          Selects a native code clause and return a list of the bundle entries for native code to be installed.
 

Method Detail

createBundle

public org.osgi.framework.Bundle createBundle(long id,
                                              BundleFile file,
                                              java.lang.Object localStore,
                                              java.lang.String location)
                                       throws org.osgi.framework.BundleException
Creates a Bundle object.
Parameters:
id - Unique context id assigned to bundle.
file - BundleFile object for the bundle.
localStore - Platform specific object for the bundle's local storage.
location - Identity string for the bundle.
Throws:
org.osgi.framework.BundleException - If the bundle has an invalid manifest.

selectNativeCode

public java.util.Vector selectNativeCode(org.osgi.framework.Bundle bundle)
                                  throws org.osgi.framework.BundleException
Selects a native code clause and return a list of the bundle entries for native code to be installed.
Parameters:
bundle - Bundle's manifest
Returns:
Vector of Strings of the bundle entries to install or null if there are no native code clauses.
Throws:
org.osgi.framework.BundleException - If there is no suitable clause.

publishFrameworkEvent

public void publishFrameworkEvent(int type,
                                  org.osgi.framework.Bundle bundle,
                                  java.lang.Throwable throwable)
Publish a FrameworkEvent.
Parameters:
type - FrameworkEvent type.
bundle - Bundle related to FrameworkEvent.
throwable - Related exception or null.
See Also:
FrameworkEvent

getLocalStore

public java.lang.Object getLocalStore(org.osgi.framework.Bundle bundle)
Returns the localStore object with which the bundle was created.
Parameters:
bundle - Bundle for whose localStore object is to be returned.
Returns:
Platform specific localStore object.
See Also:
createBundle(long, com.ibm.osg.smf.platform.BundleFile, java.lang.Object, java.lang.String)

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.