org.eclipse.gemini.blueprint.io.internal
Class OsgiHeaderUtils

java.lang.Object
  extended by org.eclipse.gemini.blueprint.io.internal.OsgiHeaderUtils

public abstract class OsgiHeaderUtils
extends Object

Utility class for handling various header operations such as splitting a manifest header into packages or extracting the version from a certain entry.

Author:
Costin Leau

Constructor Summary
OsgiHeaderUtils()
           
 
Method Summary
static String[] getBundleClassPath(org.osgi.framework.Bundle bundle)
           
static String[] getRequireBundle(org.osgi.framework.Bundle bundle)
           
static String[] parseRequiredBundleString(String entry)
          Parses the required bundle entry to determine the bundle symbolic name and version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiHeaderUtils

public OsgiHeaderUtils()
Method Detail

getBundleClassPath

public static String[] getBundleClassPath(org.osgi.framework.Bundle bundle)

getRequireBundle

public static String[] getRequireBundle(org.osgi.framework.Bundle bundle)

parseRequiredBundleString

public static String[] parseRequiredBundleString(String entry)
Parses the required bundle entry to determine the bundle symbolic name and version.

Parameters:
string - required bundle entry
Returns:
returns an array of strings with 2 entries, the first being the bundle sym name, the second the version (or 0.0.0 if nothing is specified).


Copyright © 2006-2012. All Rights Reserved.