Function javavm::load_class_cached[][src]

pub fn load_class_cached(name: &str) -> Option<JClass<'static>>
Expand description

Find and cache the JClass for the current thread. If the class has already been looked up, it returns the class and avoids any other expensive lookup without any other work on your part. The class will be automatically unloaded on program termination. If you want to unload a class before program termination, use unload_cached_class(&str)