PengZheng commented on code in PR #476:
URL: https://github.com/apache/celix/pull/476#discussion_r1115702061


##########
libs/framework/include/celix_bundle_context.h:
##########
@@ -1275,40 +1300,64 @@ void celix_bundleContext_vlog(
 
 
 /**
- * @brief Gets the config property - or environment variable if the config 
property does not exist - for the provided name.
- * @param key The key of the property to receive.
- * @param defaultVal The default value to use if the property is not found 
(can be NULL).
- * @return The property value for the provided key or the provided 
defaultValue is the key is not found.
+ * @brief Get the config property for the given key.
+ *
+ * The config property is a property from the framework configuration or a 
system property.
+ * If a system property is found, the system property is returned.
+ * Otherwise the framework configuration property - if found - is returned.
+ *
+ * @param ctx The bundle context.
+ * @param name The name of the property.
+ * @param defaultValue The default value if the property is not found.
+ * @return The property value or the default value if the property is not 
found.
  */
 const char* celix_bundleContext_getProperty(celix_bundle_context_t *ctx, const 
char *key, const char *defaultVal);
 
 /**
- * @brief Gets the config property as converts it to long. If the property is 
not a valid long, the defaultValue will be returned.
- * The rest of the behaviour is the same as celix_bundleContext_getProperty.
-
- * @param key The key of the property to receive.
- * @param defaultVal The default value to use if the property is not found.
- * @return The property value for the provided key or the provided 
defaultValue is the key is not found.
+ * @brief Get the config property for the given key converted as long value.
+ *
+ * The config property is a property from the framework configuration or a 
system property.
+ * If a system property is found, the system property is returned.
+ * Otherwise the framework configuration property - if found - is returned.
+ *
+ * @param framework The framework.
+ * @param name The name of the property.
+ * @param defaultValue The default value if the property is not found.
+ * @param found If not NULL, the found flag is set to true if the property is 
found, otherwise false.

Review Comment:
   ```suggestion
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to