|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ops4j.util.property.FallbackPropertyResolver
org.ops4j.pax.swissbox.property.BundleContextPropertyResolver
public class BundleContextPropertyResolver
Resolves properties by first looking in an optional configured dictionary then if property not found looking in bundle context.
| Constructor Summary | |
|---|---|
BundleContextPropertyResolver(org.osgi.framework.BundleContext bundleContext)
Creates a property resolver without a fallback resolver. |
|
BundleContextPropertyResolver(org.osgi.framework.BundleContext bundleContext,
org.ops4j.util.property.PropertyResolver fallbackResolver)
Creates a property resolver with a fallback resolver. |
|
| Method Summary | |
|---|---|
String |
findProperty(String propertyName)
Resolves a property based on it's name by: 1. if there is a configuration available look for the property; 2. if property is not set or there is no configuration available look for a framework / system property. |
| Methods inherited from class org.ops4j.util.property.FallbackPropertyResolver |
|---|
get |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleContextPropertyResolver(org.osgi.framework.BundleContext bundleContext)
bundleContext - bundle context; cannot be null
public BundleContextPropertyResolver(org.osgi.framework.BundleContext bundleContext,
org.ops4j.util.property.PropertyResolver fallbackResolver)
bundleContext - bundle context; cannot be nullfallbackResolver - fallback property resolver; can be null| Method Detail |
|---|
public String findProperty(String propertyName)
findProperty in class org.ops4j.util.property.FallbackPropertyResolverpropertyName - property name to be resolved
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||