com.atlassian.plugin.osgi.util
Class OsgiSystemBundleUtil

java.lang.Object
  extended by com.atlassian.plugin.osgi.util.OsgiSystemBundleUtil

public class OsgiSystemBundleUtil
extends Object

Utility method for accessing system bundle.

Since:
3.0

Field Summary
static int SYSTEM_BUNDLE_ID
          The identifier of the system bundle.
 
Constructor Summary
OsgiSystemBundleUtil()
           
 
Method Summary
static org.osgi.framework.Bundle getSystemBundle(org.osgi.framework.BundleContext currentBundleContext)
          Returns the system bundle.
static org.osgi.framework.BundleContext getSystemBundleContext(org.osgi.framework.Bundle currentBundle)
          Returns the system bundle context.
static org.osgi.framework.BundleContext getSystemBundleContext(org.osgi.framework.BundleContext currentBundleContext)
          Returns the system bundle context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_BUNDLE_ID

public static final int SYSTEM_BUNDLE_ID
The identifier of the system bundle.

Since:
3.0
See Also:
Constant Field Values
Constructor Detail

OsgiSystemBundleUtil

public OsgiSystemBundleUtil()
Method Detail

getSystemBundle

public static org.osgi.framework.Bundle getSystemBundle(org.osgi.framework.BundleContext currentBundleContext)
Returns the system bundle.

Parameters:
currentBundleContext - The bundle context used to get the system bundle.
Returns:
The system bundle.
Since:
3.0

getSystemBundleContext

public static org.osgi.framework.BundleContext getSystemBundleContext(org.osgi.framework.Bundle currentBundle)
Returns the system bundle context.

Parameters:
currentBundle - The current bundle used to get the system bundle.
Returns:
The system bundle context.
Throws:
IllegalStateException - if the current bundle is not in the STARTING, ACTIVE or STOPPING states.
Since:
3.0

getSystemBundleContext

public static org.osgi.framework.BundleContext getSystemBundleContext(org.osgi.framework.BundleContext currentBundleContext)
Returns the system bundle context.

Parameters:
currentBundleContext - The bundle context used to get the system bundle.
Returns:
The system bundle context.
Since:
3.0


Copyright © 2015 Atlassian. All rights reserved.