theLink 10.0
Loading...
Searching...
No Matches
MqFactoryC_TOR_JV_API

MqFactoryC - various functions to create, initialize and destroy a factoryMore...

+ Collaboration diagram for MqFactoryC_TOR_JV_API:

Functions

native MqFactoryC jvmqmsgque.MqFactoryC.Dup2 (String ident)
  Java: [constructor] MqFactoryC fct.Dup2(String ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer
 
static native MqFactoryC jvmqmsgque.MqFactoryC.Add (Class<?> constructor, String ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
 jvmqmsgque.MqFactoryC.MqFactoryC (Class<?> constructor, String ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
static MqFactoryC jvmqmsgque.MqFactoryC.Add (Class<?> constructor)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
 jvmqmsgque.MqFactoryC.MqFactoryC (Class<?> constructor)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqFactoryC_Dup2 (JNIEnv *env, jobject self, jstring ident)
  Java: [constructor] MqFactoryC fct.Dup2(String ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer
 
JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqFactoryC_Add (JNIEnv *env, jclass class, jclass constructor, jstring ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 
JNIEXPORT jlong JNICALL Java_jvmqmsgque_MqFactoryC_CTOR (JNIEnv *env, jclass class, jclass constructor, jstring ident)
  Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor
 

Detailed Description

MqFactoryC - various functions to create, initialize and destroy a factory

Function Documentation

◆ Add() [1/2]

static MqFactoryC jvmqmsgque.MqFactoryC.Add ( Class<?> constructor)
static

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 212 of file MqFactoryC.java.

212 {
213 return Add (constructor, null);
214 }
static native MqFactoryC Add(Class<?> constructor, String ident)
Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?...

◆ Add() [2/2]

static native MqFactoryC jvmqmsgque.MqFactoryC.Add ( Class<?> constructor,
String ident )
static

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

+ Here is the caller graph for this function:

◆ Dup2()

native MqFactoryC jvmqmsgque.MqFactoryC.Dup2 ( String ident)

Java: [constructor] MqFactoryC fct.Dup2(String ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer

◆ Java_jvmqmsgque_MqFactoryC_Add()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqFactoryC_Add ( JNIEnv * env,
jclass class,
jclass constructor,
jstring ident )

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 413 of file MqFactoryC_jv.c.

413 {
415 if (ident == NULL) {ident = (*env)->CallObjectMethod(env,constructor,NS(MID_Class_getSimpleName));JavaErrorCheck;}
416 MK_PTR constructor_c = NULL;
417 jmethodID cbMeth = (*env)->GetMethodID(env,constructor,"<init>","(Ljvmqmsgque/MqContextC;)V");
418 JavaErrorCheck;
419 constructor_c = NS(sFactorySetup)(MK_RT_CALL env, constructor, cbMeth);
420 JavaErrorCheck;
421 MK_STRN ident_ptr = (ident?(*env)->GetStringUTFChars(env,ident,NULL):NULL);
422 JavaErrorCheck;
423 MQ_FCT __retVal__L = MqFactoryAdd(NULL, NS(sFactoryCTor), constructor_c, NS(sFactoryDataFree), NS(sFactoryDataCopy), NS(sFactoryDTor), NULL, NULL, NULL, ident_ptr);
424 if (__retVal__L == NULL) {
425 (*env)->ThrowNew(env, MK(Class_MkInitError), "MqFactoryC.Add");
426 goto error;
427 }
428 jobject __retVal__S = MQ(MqFactoryC_ObjCreate)(MK_RT_CALL env,__retVal__L);
429 if (ident_ptr) (*env)->ReleaseStringUTFChars(env,ident,ident_ptr);
430 return __retVal__S;
431error:
432 return 0;
433}
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_NULL
#define MqFactoryAdd(...)
data used to define a factory

◆ Java_jvmqmsgque_MqFactoryC_CTOR()

JNIEXPORT jlong JNICALL Java_jvmqmsgque_MqFactoryC_CTOR ( JNIEnv * env,
jclass class,
jclass constructor,
jstring ident )

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 436 of file MqFactoryC_jv.c.

436 {
438 if (ident == NULL) {ident = (*env)->CallObjectMethod(env,constructor,NS(MID_Class_getSimpleName));JavaErrorCheck;}
439 MK_PTR constructor_c = NULL;
440 jmethodID cbMeth = (*env)->GetMethodID(env,constructor,"<init>","(Ljvmqmsgque/MqContextC;)V");
441 JavaErrorCheck;
442 constructor_c = NS(sFactorySetup)(MK_RT_CALL env, constructor, cbMeth);
443 JavaErrorCheck;
444 MK_STRN ident_ptr = (ident?(*env)->GetStringUTFChars(env,ident,NULL):NULL);
445 JavaErrorCheck;
446 MQ_FCT __retVal__L = MqFactoryAdd(NULL, NS(sFactoryCTor), constructor_c, NS(sFactoryDataFree), NS(sFactoryDataCopy), NS(sFactoryDTor), NULL, NULL, NULL, ident_ptr);
447 if (__retVal__L == NULL) {
448 (*env)->ThrowNew(env, MK(Class_MkInitError), "MqFactoryC.CTOR");
449 goto error;
450 }
451 jlong __retVal__S = (jlong)__retVal__L;
452 if (ident_ptr) (*env)->ReleaseStringUTFChars(env,ident,ident_ptr);
453 return __retVal__S;
454error:
455 return 0;
456}

◆ Java_jvmqmsgque_MqFactoryC_Dup2()

JNIEXPORT jobject JNICALL Java_jvmqmsgque_MqFactoryC_Dup2 ( JNIEnv * env,
jobject self,
jstring ident )

Java: [constructor] MqFactoryC fct.Dup2(String ident) C-API
create a duplicate of the singleton object MqFactoryC using a new factory-identifer

Definition at line 392 of file MqFactoryC_jv.c.

392 {
393 MQ_FCTN hdl = (MQ_FCTN)pObj2Hdl(env,"MqFactoryC",self);
394 JavaErrorCheck;
396 MK_STRN ident_ptr = (ident?(*env)->GetStringUTFChars(env,ident,NULL):NULL);
397 JavaErrorCheck;
398 MQ_FCT __retVal__L = MqFactoryDup2(hdl, ident_ptr);
399 if (__retVal__L == NULL) {
400 (*env)->ThrowNew(env, MK(Class_MkInitError), "MqFactoryC.Dup2");
401 goto error;
402 }
403 jobject __retVal__S = MQ(MqFactoryC_ObjCreate)(MK_RT_CALL env,__retVal__L);
404 if (ident_ptr) (*env)->ReleaseStringUTFChars(env,ident,ident_ptr);
405 return __retVal__S;
406error:
407 return 0;
408}
const struct MqFactoryS * MQ_FCTN
class-shortcut for const struct MqFactoryS *, all const shortcut using the XX_YYYC syntax (only for p...
#define MqFactoryDup2(...)

◆ MqFactoryC() [1/2]

jvmqmsgque.MqFactoryC.MqFactoryC ( Class<?> constructor)

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 217 of file MqFactoryC.java.

217 {
218 this(CTOR(constructor, null), true);
219 }

◆ MqFactoryC() [2/2]

jvmqmsgque.MqFactoryC.MqFactoryC ( Class<?> constructor,
String ident )

Java: [constructor,static] MqFactoryC MqFactoryC.Add(Class<?> constructor, ?String ident = null?) C-API
Add a new MqFactoryC identified by factory-identifier and defined by factory-constructor

Definition at line 207 of file MqFactoryC.java.

207 {
208 this(CTOR(constructor, ident), true);
209 }