/// Create a newly initialised but blank JVM `Agent` instance using the provided JVM agent.

Create a newly initialised but blank JVM `Agent` instance using the provided JVM agent.
Create a newly initialised but blank JVM ` Agent ` instance using the provided JVM agent .
pub fn new_from(jvm: Box<JVMF>) -> Agent {
        let jni = jvm.attach("Flare-Profiler-Attach").unwrap();
        match jvm.get_environment() {
            Ok(jvmti) => Agent {
                jvm: jvm,
                capabilities: Capabilities::new(),
                callbacks: EventCallbacks::new(),
                jvm_env: Agent::create_jvm_env(jvmti, jni)
            },
            Err(err) => panic!("FATAL: Could not get JVMTI Env: {}", translate_error(&err))
        }
    }
pub fn new_from ( jvm : Box < JVMF > ) -> Agent { let jni = jvm . attach ( " " ) . unwrap ( ) ; match jvm . get_environment ( ) { Ok ( jvmti ) => Agent { jvm : jvm , capabilities : Capabilities :: new ( ) , callbacks : EventCallbacks :: new ( ) , jvm_env : Agent :: create_jvm_env ( jvmti , jni ) } , Err ( err ) => panic ! ( " " translate_error ( err ) ) } }
Create a newly initialised but blank JVM `Agent` instance using the provided JVM agent.
Create a newly initialised but blank JVM ` Agent ` instance using the provided JVM agent .
jvm
Box<JVMF>