jvmti_rs/wrapper/facade/
system_properties.rs

1use jni::strings::JNIString;
2
3use crate::{errors::*, JVMTIFacadeEnv};
4
5impl<'a> JVMTIFacadeEnv<'a> {
6    pub fn get_system_properties(&self) -> Result<Vec<String>> {
7        self.jvmti_rust().get_system_properties()
8    }
9
10    pub fn get_system_property<S>(&self, property: S) -> Result<String>
11        where
12            S: Into<JNIString> {
13        self.jvmti_rust().get_system_property(property)
14    }
15
16    pub fn set_system_property<S>(&self, property: S, value: S) -> Result<()>
17        where
18            S: Into<JNIString> {
19        self.jvmti_rust().set_system_property(property, value)
20    }
21}