Class GetConfigurationProperties
java.lang.Object
org.codice.ddf.itests.common.callables.GetConfigurationProperties
- All Implemented Interfaces:
Callable<Dictionary<String,Object>>
public class GetConfigurationProperties
extends Object
implements Callable<Dictionary<String,Object>>
Callable that retrieves the properties of a Configuration object. The search is
done by looking for the Configuration object that has a property set to a specific value.
If multiple objects match the criteria, an IllegalArgumentException will be thrown. For
that reason, care should be taken to use a property name whose value is known to be unique.-
Constructor Summary
ConstructorsConstructorDescriptionGetConfigurationProperties(org.osgi.service.cm.ConfigurationAdmin configAdmin, String propertyName, String propertyValue) Constructor. -
Method Summary
-
Constructor Details
-
GetConfigurationProperties
public GetConfigurationProperties(org.osgi.service.cm.ConfigurationAdmin configAdmin, String propertyName, String propertyValue) Constructor.- Parameters:
configAdmin- reference to the container'sConfigurationAdminpropertyName- name of the property to use for the searchpropertyValue- property value to search for
-
-
Method Details
-
call
Retrieves theConfigurationobject's properties.- Specified by:
callin interfaceCallable<Dictionary<String,Object>> - Returns:
Configurationobject's properties.nullif theConfigurationobject does not exist or has no properties.- Throws:
IllegalArgumentException- thrown if multipleConfigurationobjects match the search criteria, i.e., have the same property name/value pairException- thrown for any other reasons
-