MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_factory_class

Function get_factory_class

rust/src/cache.rs:782–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

780}
781
782pub(crate) fn get_factory_class() -> errors::Result<jclass> {
783 get_cached!(
784 FACTORY_CLASS,
785 {
786 let env = get_thread_local_env()?;
787 let c = tweaks::find_class(env, INST_CLASS_NAME)?;
788 if CLASS_CACHING_ENABLED {
789 jni_utils::create_global_ref_from_local_ref(c, env)?
790 } else {
791 c
792 }
793 },
794 set_factory_class
795 )
796}
797
798pub(crate) fn set_utils_class(j: jclass) {
799 debug("Called set_utils_class");

Callers 6

create_instanceMethod · 0.85
static_classMethod · 0.85
create_java_arrayMethod · 0.85
do_create_java_listMethod · 0.85
do_create_java_mapMethod · 0.85
invoke_staticMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected