org.dawb.common.util.eclipse
Class BundleUtils

java.lang.Object
  extended by org.dawb.common.util.eclipse.BundleUtils

public class BundleUtils
extends java.lang.Object

BundleUtils Assumes that this class can be used before the Logger is loaded, therefore do not put Logging in here.

Author:
gerring

Constructor Summary
BundleUtils()
           
 
Method Summary
static java.io.File getBundleLocation(org.osgi.framework.Bundle bundle)
          Get the java.io.File location of a bundle.
static java.io.File getBundleLocation(java.lang.String bundleName)
           
static java.io.File getBundlePathNoLoading(java.lang.String bundleName)
          Get the bundle path using eclipse.home.location not loading the bundle.
static java.lang.String getEclipseHome()
          Gets eclipse home in debug and in deployed application mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleUtils

public BundleUtils()
Method Detail

getBundleLocation

public static java.io.File getBundleLocation(java.lang.String bundleName)
                                      throws java.io.IOException
Throws:
java.io.IOException

getBundleLocation

public static java.io.File getBundleLocation(org.osgi.framework.Bundle bundle)
                                      throws java.io.IOException
Get the java.io.File location of a bundle.

Parameters:
bundleName -
Returns:
Throws:
java.lang.Exception
java.io.IOException

getBundlePathNoLoading

public static java.io.File getBundlePathNoLoading(java.lang.String bundleName)
Get the bundle path using eclipse.home.location not loading the bundle.

Parameters:
bundleName -
Returns:

getEclipseHome

public static java.lang.String getEclipseHome()
Gets eclipse home in debug and in deployed application mode.

Returns: