szaszm commented on code in PR #2220:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2220#discussion_r3852428708


##########
minifi_rust/minifi_native/src/api/process_context.rs:
##########
@@ -15,115 +15,39 @@
 // specific language governing permissions and limitations
 // under the License.
 
-use crate::StandardPropertyValidator::*;
 use crate::api::RawControllerService;
 use crate::api::component_definition_traits::ComponentIdentifier;
 use crate::api::flow_file::FlowFile;
-use crate::api::property::GetControllerService;
-use crate::{
-    ControllerServiceApi, ControllerServiceDefinition, 
EnableControllerService, GetProperty,
-    MinifiError, Property,
-};
-use std::str::FromStr;
-use std::time::Duration;
+use crate::api::property::{ControllerServiceValue, GetControllerService, 
PropertySchema};
+use crate::{ControllerServiceApi, EnableControllerService, GetProperty, 
MinifiError, Property};
 
 pub trait ProcessContext {
     type FlowFile: FlowFile;
 
-    fn get_property(
+    fn get_raw_property<P: PropertySchema + ?Sized>(
         &self,
-        property: &Property,
+        property: &Property<P>,
         flow_file: Option<&Self::FlowFile>,
     ) -> Result<Option<String>, MinifiError>;
 
-    fn get_bool_property(
+    fn get_raw_controller_service<Cs, P>(

Review Comment:
   What is the difference between a "raw" controller service and one that's not 
"raw"? I remember that with properties, you get the string value instead of the 
parsed one, but that doesn't make sense here. Could you add short comments 
above the respective functions, explaining what they do?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to