Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_connection_provider.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_connection_provider_inc
7 #define xmog_connection_provider_inc
8 
9 
12 class xmog_jvm;
13 class xmog_sharedlib;
14 
15 
16 #include "xmog.h"
17 
18 
22 class XMOG_DECLSPEC xmog_connection_provider
23 {
24 public:
25 
29  typedef int (XMOG_CALLING_CONVENTION *XMOG_CONNECT_METHOD)( xmog_jvm ** result, const char * connect, xmog_authentication_provider * auth, xmog_encryption_provider * enc );
30 
34  typedef int (XMOG_CALLING_CONVENTION *XMOG_DISCONNECT_METHOD)( xmog_jvm * );
35 
44 
49 
54  int connect( xmog_jvm ** result );
55 
60  int disconnect( xmog_jvm * jvm );
61 
62 private:
63 
64  int init();
65 
66  char * connect_;
67 
69 
71 
72  xmog_sharedlib * lib_;
73 
74  XMOG_CONNECT_METHOD mConnect;
75 
76  XMOG_DISCONNECT_METHOD mDisconnect;
77 };
78 
79 
80 #endif /* xmog_connection_provider_inc */
xmog_sharedlib
A wrapper around shared libraries.
Definition: xmog_sharedlib.h:18
xmog_authentication_provider
The interface that all custom authentication providers need to implement.
Definition: xmog_authentication_provider.h:16
xmog_connection_provider
The facade for all custom connection providers.
Definition: xmog_connection_provider.h:22
xmog_encryption_provider
The facade for all custom encryption providers.
Definition: xmog_encryption_provider.h:19
xmog_jvm
The class that represents a Java Virtual Machine in the framework.
Definition: xmog_jvm.h:41

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.