public class OsgiUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
lookup(BundleContext context,
String name)
Looks a property up by name in the set of framework properties.
|
static String |
lookup(ComponentContext context,
String name)
Looks a property up by name in a component context.
|
static String |
lookupConfigurationThenFramework(ComponentContext context,
String name)
Looks a property up by name in the component context first, falling back
in the framework properties if not found.
|
static String |
lookupConfigurationThenFramework(ComponentContext context,
String nameInComponent,
String nameInFramework)
Looks a property up by name in the component context first, falling back
in the framework properties if not found.
|
static String |
lookupFrameworkThenConfiguration(ComponentContext context,
String name)
Looks a property up by name in the framework properties first, falling
back to the component context if not not found.
|
static String |
lookupFrameworkThenConfiguration(ComponentContext context,
String nameInComponent,
String nameInFramework)
Looks a property up by name in the framework properties first, falling
back to the component context if not not found.
|
public static String lookup(ComponentContext context, String name)
null
if the property is not found or if the property is found but it is an
empty string.context - Component context.name - Name of the property.null.public static String lookup(BundleContext context, String name)
null if the property is not found or if the property is found but
it is an empty string.context - Bundle context.name - Name of the property.null.public static String lookupConfigurationThenFramework(ComponentContext context, String name)
null if the
property is not found or if the property is found but it is an empty
string.context - Component context.name - Name of the property.null.public static String lookupConfigurationThenFramework(ComponentContext context, String nameInComponent, String nameInFramework)
null if the
property is not found or if the property is found but it is an empty
string.context - Component context.nameInComponent - Name of the property in the component context.nameInFramework - Name of the property in the framework properties.null.public static String lookupFrameworkThenConfiguration(ComponentContext context, String name)
null if
the property is not found or if the property is found but it is an empty
string.context - Component context.name - Name of the property.null.public static String lookupFrameworkThenConfiguration(ComponentContext context, String nameInComponent, String nameInFramework)
null if
the property is not found or if the property is found but it is an empty
string.context - Component context.nameInComponent - Name of the property in the component context.nameInFramework - Name of the property in the framework properties.null."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"