|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.kernel.service.utils.OsgiPropertyUtils
public class OsgiPropertyUtils
Attempt to retrieve properties using the bundle context of the bundle
that loaded this utility class. BundleContext.getProperty
does
not check any values that are bundle-specific: it first checks
the list of properties used to start the framework, and then checks
system properties to retrieve the property value.
FrameworkUtil.getBundle(Class)
,
BundleContext.getProperty(String)
Constructor Summary | |
---|---|
OsgiPropertyUtils()
|
Method Summary | |
---|---|
static boolean |
getBoolean(java.lang.String propertyName)
Retrieve the value of the specified property from framework/system properties. |
static int |
getInteger(java.lang.String propertyName,
int defaultValue)
Retrieve the value of the specified property from framework/system properties. |
static long |
getLong(java.lang.String propertyName,
long defaultValue)
Retrieve the value of the specified property from framework/system properties. |
static java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Retrieve the value of the specified property from framework/system properties. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiPropertyUtils()
Method Detail |
---|
public static java.lang.String getProperty(java.lang.String propertyName, java.lang.String defaultValue)
propertyName
- Name of propertydefaultValue
- Default value to return if property is not set
public static int getInteger(java.lang.String propertyName, int defaultValue)
propertyName
- Name of propertydefaultValue
- Default value to return if property is not set
public static long getLong(java.lang.String propertyName, long defaultValue)
propertyName
- Name of propertydefaultValue
- Default value to return if property is not set
public static boolean getBoolean(java.lang.String propertyName)
propertyName
- Name of propertydefaultValue
- Default value to return if property is not set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |