26#include "jau_direct_bt_DBTNativeDownlink.h"
46 if(
nullptr == javaClazz ) {
49 jmethodID mNotifyDeleted =
search_method(env, javaClazz,
"notifyDeleted",
"()V",
false);
51 if(
nullptr == mNotifyDeleted ) {
54 javaUplink->setJavaObject( std::make_shared<JavaGlobalObj>( std::move(global_obj), mNotifyDeleted ) );
55 JavaGlobalObj::check(javaUplink->getJavaObject(),
E_FILE_LINE);
69 javaUplink->setJavaObject();
void Java_jau_direct_1bt_DBTNativeDownlink_initNativeJavaObject(JNIEnv *env, jobject obj, jlong nativeInstance)
void Java_jau_direct_1bt_DBTNativeDownlink_deleteNativeJavaObject(JNIEnv *env, jobject obj, jlong nativeInstance)
jobject getObject() const noexcept
A std::shared_ptr<T> storage instance to be copied from and released into a java object's long native...
void null_check2() const
Throws an exception if either this instances shared_ptr<T> storage or the managed object reference is...
const std::shared_ptr< T > & shared_ptr() const
Provides access to const reference of shared_ptr<T>, r-value.
std::string toString() const noexcept
#define DBG_JNI_PRINT(...)
Use for environment-variable environment::DEBUG_JNI conditional debug messages, prefix '[elapsed_time...
void java_exception_check_and_throw(JNIEnv *env, const char *file, int line)
Throws a C++ exception if a java exception occurred, otherwise do nothing.
jmethodID search_method(JNIEnv *env, jclass clazz, const char *method_name, const char *prototype, bool is_static)
jclass search_class(JNIEnv *env, const char *clazz_name)
#define rethrow_and_raise_java_exception(E)
Re-throw current exception and raise respective java exception using any matching function above.