org.apache.felix.webconsole.plugins.event.internal
Class OsgiUtil

java.lang.Object
  extended by org.apache.felix.webconsole.plugins.event.internal.OsgiUtil

public class OsgiUtil
extends Object

The OsgiUtil is a utility class providing some usefull utility methods.


Constructor Summary
OsgiUtil()
           
 
Method Summary
static boolean toBoolean(Dictionary props, String key, boolean defaultValue)
           
static int toInteger(Dictionary props, String key, int defaultValue)
           
static Object toObject(Dictionary props, String key)
           
static String toString(Dictionary props, String key, String defaultValue)
           
static String[] toStringArray(Dictionary props, String key, String[] defaultArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiUtil

public OsgiUtil()
Method Detail

toBoolean

public static boolean toBoolean(Dictionary props,
                                String key,
                                boolean defaultValue)

toString

public static String toString(Dictionary props,
                              String key,
                              String defaultValue)

toInteger

public static int toInteger(Dictionary props,
                            String key,
                            int defaultValue)

toObject

public static Object toObject(Dictionary props,
                              String key)

toStringArray

public static String[] toStringArray(Dictionary props,
                                     String key,
                                     String[] defaultArray)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.