Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gemini.blueprint.io.internal
Class OsgiUtils

    java.lang.Object
      org.eclipse.gemini.blueprint.io.internal.OsgiUtils

    public abstract class OsgiUtils

extends Object

Simple utils class for the IO package. This method might contain util methods from other packages since it the IO package needs to be stand-alone.

Author:
  Costin Leau

Constructor Summary
`OsgiUtils()`

Method Summary
`static org.osgi.framework.BundleContext` | `getBundleContext(org.osgi.framework.Bundle bundle)` Returns the underlying BundleContext for the given Bundle.
`static String` | `getPlatformName(org.osgi.framework.BundleContext bundleContext)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OsgiUtils

    public OsgiUtils()

Method Detail

### getPlatformName

    public static String getPlatformName(org.osgi.framework.BundleContext bundleContext)

### getBundleContext

    public static org.osgi.framework.BundleContext getBundleContext(org.osgi.framework.Bundle bundle)

  Returns the underlying BundleContext for the given Bundle. This uses reflection and highly dependent of the OSGi implementation. Should not be used if OSGi 4.1 is being used. Note: Identical to the util found in Spring-DM core

  Parameters:
    `bundle` - OSGi bundle
  Returns:
    the bundle context for this bundle

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2012. All Rights Reserved.