48 ES_API(JNISUPPORT)
jvm(
jvm&&)
noexcept;
49 ES_API(JNISUPPORT)
~jvm();
50 ES_API(JNISUPPORT)
jvm& operator=(
jvm&&)
noexcept;
51 ES_API(JNISUPPORT)
static const jvm& instance();
52 ES_API(JNISUPPORT) std::optional<jvm_context> init(JavaVM* vm)
const;
53 [[nodiscard]] ES_API(JNISUPPORT) JNIEnv* get_env()
const;
54 [[nodiscard]] ES_API(JNISUPPORT) JNIEnv* ensure_env()
const;
55 [[nodiscard]] ES_API(JNISUPPORT) std::optional<jvm_context> context()
const;
56 ES_API(JNISUPPORT)
global_ref& add_managed_entry(jobject init =
nullptr)
const;
57 ES_API(JNISUPPORT)
void clear_entries()
const;
64 std::unique_ptr<impl> impl_;
A Java VM runtime context.
Definition jvm.hpp:38