Interface EnhancedConfig
- All Known Implementing Classes:
JSONEnhancedConfig
public interface EnhancedConfig
-
Method Summary
Modifier and TypeMethodDescriptionorg.forgerock.json.JsonValuegetConfiguration(Dictionary<String, Object> dict, String servicePid, boolean decrypt) Gets the extended Configuration which allows for nested Maps and Listsorg.forgerock.json.JsonValuegetConfiguration(Dictionary<String, Object> dict, org.osgi.framework.BundleContext context, String servicePid) Gets the extended Configuration which allows for nested Maps and Listsorg.forgerock.json.JsonValuegetConfigurationAsJson(org.osgi.service.component.ComponentContext compContext) Gets the extended Configuration which allows for nested Maps and ListsgetConfigurationFactoryPid(org.osgi.service.component.ComponentContext compContext) Gets the service factory pid from the given OSGi component context.org.forgerock.json.JsonValuegetRawConfiguration(Dictionary<String, Object> dict, String servicePid) Gets the extended Configuration which allows for nested Maps and Lists.
-
Method Details
-
getConfigurationAsJson
org.forgerock.json.JsonValue getConfigurationAsJson(org.osgi.service.component.ComponentContext compContext) throws InvalidException, InternalErrorException Gets the extended Configuration which allows for nested Maps and Lists- Parameters:
compContext- The component context with the configuration to retrieve- Returns:
- the enhanced configuration with nested maps, list allowed
- Throws:
InvalidException- if the configuration is invalidInternalErrorException- if a failure occurred in retrieving the configuration
-
getConfiguration
org.forgerock.json.JsonValue getConfiguration(Dictionary<String, Object> dict, org.osgi.framework.BundleContext context, String servicePid) throws InvalidException, InternalErrorExceptionGets the extended Configuration which allows for nested Maps and Lists- Parameters:
dict- The standard OSGi configuration properties dictionarycontext- The OSGi bundle context, used to detect other services such as for decryptionservicePid- the service pid this configuration is for- Returns:
- the enhanced configuration (with nested maps, list allowed), empty json if no configuration properties exist.
- Throws:
InvalidExceptionInternalErrorException
-
getConfiguration
org.forgerock.json.JsonValue getConfiguration(Dictionary<String, Object> dict, String servicePid, boolean decrypt) throws InvalidException, InternalErrorExceptionGets the extended Configuration which allows for nested Maps and Lists- Parameters:
dict- The standard OSGi configuration properties dictionaryservicePid- the service pid this configuration is fordecrypt- true if any encrypted values should be decrypted in the result- Returns:
- the enhanced configuration (with nested maps, list allowed), empty json if no configuration properties exist.
- Throws:
InvalidExceptionInternalErrorException
-
getRawConfiguration
org.forgerock.json.JsonValue getRawConfiguration(Dictionary<String, Object> dict, String servicePid) throws InvalidExceptionGets the extended Configuration which allows for nested Maps and Lists. The returned configuration will *not* be decrypted, nor have properties evaluated.- Parameters:
dict- The standard OSGi configuration properties dictionaryservicePid- the service pid this configuration is for- Returns:
- the enhanced configuration (with nested maps, list allowed), empty json if no configuration properties exist.
- Throws:
InvalidException
-
getConfigurationFactoryPid
Gets the service factory pid from the given OSGi component context.- Parameters:
compContext- The component context with the configuration to retrieve- Returns:
- the service factory pid
-