javonet-ruby-sdk 2.4.5 → 2.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (401) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/javonet-ruby-sdk/Binaries/Clr/Windows/X64/Javonet.Clr.Utils.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Clr/Windows/X64/JavonetClrRuntime.dll +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Jvm/Linux/X64/JavonetJvmRuntime.jar +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Jvm/MacOs/X64/JavonetJvmRuntime.jar +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Jvm/Windows/X64/JavonetJvmRuntime.jar +0 -0
  8. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  9. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  10. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  11. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  12. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  13. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  15. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  16. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  18. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  19. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  22. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  24. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  26. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  27. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  34. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  37. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  41. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  43. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  47. data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Core.dll +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Utils.dll +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Core.dll +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Utils.dll +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Core.dll +0 -0
  52. data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Utils.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/DestructReferenceHandler.js +1 -1
  54. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/EnableNamespaceHandler.js +37 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/EnableTypeHandler.js +37 -0
  56. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/GetTypeHandler.js +21 -5
  57. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/Handler.js +10 -7
  58. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/LoadLibraryHandler.js +11 -2
  59. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/ResolveReferenceHandler.js +1 -1
  60. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/namespaceCache/NamespaceCache.js +39 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/typeCache/TypeCache.js +39 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/CommandType.js +3 -1
  63. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/DestructReferenceHandler.js +1 -1
  64. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/EnableNamespaceHandler.js +37 -0
  65. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/EnableTypeHandler.js +37 -0
  66. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/GetTypeHandler.js +21 -5
  67. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/Handler.js +10 -7
  68. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/LoadLibraryHandler.js +11 -2
  69. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/ResolveReferenceHandler.js +1 -1
  70. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/namespaceCache/NamespaceCache.js +39 -0
  71. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/typeCache/TypeCache.js +39 -0
  72. data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/CommandType.js +3 -1
  73. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/DestructReferenceHandler.js +1 -1
  74. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/EnableNamespaceHandler.js +37 -0
  75. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/EnableTypeHandler.js +37 -0
  76. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/GetTypeHandler.js +21 -5
  77. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/Handler.js +10 -7
  78. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/LoadLibraryHandler.js +11 -2
  79. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/ResolveReferenceHandler.js +1 -1
  80. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/namespaceCache/NamespaceCache.js +39 -0
  81. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/typeCache/TypeCache.js +39 -0
  82. data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/utils/CommandType.js +3 -1
  83. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  84. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  85. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  86. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  87. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  88. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  89. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  90. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  91. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  92. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  93. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +96 -96
  94. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/perllocal.pod +89 -89
  95. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  96. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  97. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  98. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  99. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  100. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +17 -17
  101. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
  102. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/ArrayGetRankHandler.py +1 -1
  103. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
  104. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/ArrayHandler.py +1 -1
  105. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/ArraySetItemHandler.py +1 -1
  106. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/CastingHandler.py +1 -1
  107. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/CreateClassInstanceHandler.py +1 -1
  108. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/DestructReferenceHandler.py +2 -2
  109. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
  110. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
  111. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetEnumItemHandler.py → GetEnumItemHandler.py} +1 -1
  112. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/GetEnumNameHandler.py +1 -1
  113. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
  114. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
  115. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
  116. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/GetTypeHandler.py +56 -0
  117. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/Handler.py +26 -24
  118. data/lib/javonet-ruby-sdk/Binaries/Python/{Windows/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/InvokeInstanceMethodHandler.py +31 -31
  119. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
  120. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
  121. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
  122. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/SetInstanceFieldHandler.py +1 -1
  123. data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/SetStaticFieldHandler.py +1 -1
  124. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
  125. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
  126. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/receiver/Receiver.py +4 -1
  127. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
  128. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/typeCache/TypeCache.py +44 -0
  129. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/CommandType.py +2 -0
  130. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
  131. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/ArrayGetRankHandler.py +1 -1
  132. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
  133. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/ArrayHandler.py +1 -1
  134. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/ArraySetItemHandler.py +1 -1
  135. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/CastingHandler.py +1 -1
  136. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/CreateClassInstanceHandler.py +1 -1
  137. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/DestructReferenceHandler.py +2 -2
  138. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
  139. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
  140. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetEnumItemHandler.py → GetEnumItemHandler.py} +1 -1
  141. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/GetEnumNameHandler.py +1 -1
  142. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
  143. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
  144. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
  145. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/GetTypeHandler.py +56 -0
  146. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/Handler.py +26 -24
  147. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/InvokeInstanceMethodHandler.py → InvokeInstanceMethodHandler.py} +5 -5
  148. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
  149. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
  150. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
  151. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/SetInstanceFieldHandler.py +1 -1
  152. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/SetStaticFieldHandler.py +1 -1
  153. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
  154. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
  155. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/namespaceCache/__init__.py +0 -0
  156. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/receiver/Receiver.py +4 -1
  157. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
  158. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/referenceCache/__init__.py +0 -0
  159. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/typeCache/TypeCache.py +44 -0
  160. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/typeCache/__init__.py +0 -0
  161. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/CommandType.py +2 -0
  162. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/__pycache__/__init__.cpython-311.pyc +0 -0
  163. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/__pycache__/__init__.cpython-311.pyc +0 -0
  164. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-311.pyc +0 -0
  165. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/__init__.cpython-311.pyc +0 -0
  166. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
  167. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetRankHandler.py → ArrayGetRankHandler.py} +1 -1
  168. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
  169. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayHandler.py → ArrayHandler.py} +1 -1
  170. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArraySetItemHandler.py → ArraySetItemHandler.py} +1 -1
  171. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/CastingHandler.py → CastingHandler.py} +1 -1
  172. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/CreateClassInstanceHandler.py → CreateClassInstanceHandler.py} +1 -1
  173. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/DestructReferenceHandler.py → DestructReferenceHandler.py} +2 -2
  174. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
  175. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
  176. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumItemHandler.py → GetEnumItemHandler.py} +1 -1
  177. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumNameHandler.py → GetEnumNameHandler.py} +1 -1
  178. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
  179. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
  180. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
  181. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/GetTypeHandler.py +56 -0
  182. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/Handler.py +26 -24
  183. data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → Windows/X64/javonet/core/handler}/InvokeInstanceMethodHandler.py +31 -31
  184. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
  185. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
  186. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
  187. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/SetInstanceFieldHandler.py → SetInstanceFieldHandler.py} +1 -1
  188. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/SetStaticFieldHandler.py → SetStaticFieldHandler.py} +1 -1
  189. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
  190. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/AbstractCommandHandler.cpython-311.pyc +0 -0
  191. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractHandler.cpython-311.pyc +0 -0
  192. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetItemHandler.cpython-311.pyc +0 -0
  193. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetRankHandler.cpython-311.pyc +0 -0
  194. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetSizeHandler.cpython-311.pyc +0 -0
  195. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayHandler.cpython-311.pyc +0 -0
  196. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArraySetItemHandler.cpython-311.pyc +0 -0
  197. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
  198. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
  199. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
  200. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-311.pyc +0 -0
  201. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-311.pyc +0 -0
  202. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumItemHandler.cpython-311.pyc +0 -0
  203. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumNameHandler.cpython-311.pyc +0 -0
  204. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumValueHandler.cpython-311.pyc +0 -0
  205. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetInstanceFieldHandler.cpython-311.pyc +0 -0
  206. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetStaticFieldHandler.cpython-311.pyc +0 -0
  207. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
  208. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/Handler.cpython-311.pyc +0 -0
  209. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/HandlerDictionary.cpython-311.pyc +0 -0
  210. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
  211. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/InvokeStaticMethodHandler.cpython-311.pyc +0 -0
  212. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/LoadLibraryHandler.cpython-311.pyc +0 -0
  213. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
  214. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/SetInstanceFieldHandler.cpython-311.pyc +0 -0
  215. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/SetStaticFieldHandler.cpython-311.pyc +0 -0
  216. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
  217. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/__init__.cpython-311.pyc +0 -0
  218. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/Interpreter.cpython-311.pyc +0 -0
  219. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/__init__.cpython-311.pyc +0 -0
  220. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
  221. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__init__.py +0 -0
  222. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-311.pyc +0 -0
  223. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  224. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-311.pyc +0 -0
  225. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandSerializer.cpython-311.pyc +0 -0
  226. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-311.pyc +0 -0
  227. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeSerializer.cpython-311.pyc +0 -0
  228. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/__init__.cpython-311.pyc +0 -0
  229. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/Receiver.py +4 -1
  230. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/Receiver.cpython-311.pyc +0 -0
  231. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/__init__.cpython-311.pyc +0 -0
  232. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
  233. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__init__.py +0 -0
  234. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
  235. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  236. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/TypeCache.py +44 -0
  237. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__init__.py +0 -0
  238. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/TypeCache.cpython-311.pyc +0 -0
  239. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/__init__.cpython-311.pyc +0 -0
  240. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/CommandType.py +2 -0
  241. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Command.cpython-311.pyc +0 -0
  242. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/CommandType.cpython-311.pyc +0 -0
  243. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ConnectionType.cpython-311.pyc +0 -0
  244. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ExceptionType.cpython-311.pyc +0 -0
  245. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/RuntimeName.cpython-311.pyc +0 -0
  246. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/StringEncodingMode.cpython-311.pyc +0 -0
  247. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/TcpConnectionData.cpython-311.pyc +0 -0
  248. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Type.cpython-311.pyc +0 -0
  249. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  250. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-311.pyc +0 -0
  251. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/__init__.cpython-311.pyc +0 -0
  252. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
  253. data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/destruct_reference_handler.rb +1 -1
  254. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/enable_namespace_handler.rb +31 -0
  255. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/enable_type_handler.rb +32 -0
  256. data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/get_instance_field_handler.rb +1 -1
  257. data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/get_static_field_handler.rb +1 -1
  258. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +59 -0
  259. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/handler.rb +30 -24
  260. data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/resolve_instance_handler.rb +1 -1
  261. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/namespace_cache/namespace_cache.rb +40 -0
  262. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/reference_cache/references_cache.rb +33 -0
  263. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/type_cache/type_cache.rb +40 -0
  264. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/random/formatter.rb +373 -0
  265. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/securerandom.rb +29 -266
  266. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/singleton.rb +172 -0
  267. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/command_type.rb +11 -3
  268. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
  269. data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/destruct_reference_handler.rb +1 -1
  270. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/enable_namespace_handler.rb +31 -0
  271. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/enable_type_handler.rb +32 -0
  272. data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/get_instance_field_handler.rb +1 -1
  273. data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/get_static_field_handler.rb +1 -1
  274. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +59 -0
  275. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/handler.rb +30 -24
  276. data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/resolve_instance_handler.rb +1 -1
  277. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/namespace_cache/namespace_cache.rb +40 -0
  278. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/reference_cache/references_cache.rb +33 -0
  279. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/type_cache/type_cache.rb +40 -0
  280. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/random/formatter.rb +373 -0
  281. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/securerandom.rb +29 -266
  282. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/singleton.rb +172 -0
  283. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/command_type.rb +11 -3
  284. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
  285. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/destruct_reference_handler.rb → destruct_reference_handler.rb} +1 -1
  286. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/enable_namespace_handler.rb +31 -0
  287. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/enable_type_handler.rb +32 -0
  288. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/get_instance_field_handler.rb → get_instance_field_handler.rb} +1 -1
  289. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/get_static_field_handler.rb → get_static_field_handler.rb} +1 -1
  290. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +59 -0
  291. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/handler.rb +30 -24
  292. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/resolve_instance_handler.rb → resolve_instance_handler.rb} +1 -1
  293. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/namespace_cache/namespace_cache.rb +40 -0
  294. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/reference_cache/references_cache.rb +33 -0
  295. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/type_cache/type_cache.rb +40 -0
  296. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/random/formatter.rb +373 -0
  297. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/securerandom.rb +29 -266
  298. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/singleton.rb +172 -0
  299. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/utils/command_type.rb +11 -3
  300. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  301. data/lib/javonet-ruby-sdk/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
  302. data/lib/javonet-ruby-sdk/core/handler/{command_handler/destruct_reference_handler.rb → destruct_reference_handler.rb} +1 -1
  303. data/lib/javonet-ruby-sdk/core/handler/enable_namespace_handler.rb +31 -0
  304. data/lib/javonet-ruby-sdk/core/handler/enable_type_handler.rb +32 -0
  305. data/lib/javonet-ruby-sdk/core/handler/{command_handler/get_instance_field_handler.rb → get_instance_field_handler.rb} +1 -1
  306. data/lib/javonet-ruby-sdk/core/handler/{command_handler/get_static_field_handler.rb → get_static_field_handler.rb} +1 -1
  307. data/lib/javonet-ruby-sdk/core/handler/get_type_handler.rb +59 -0
  308. data/lib/javonet-ruby-sdk/core/handler/handler.rb +30 -24
  309. data/lib/javonet-ruby-sdk/core/handler/{command_handler/resolve_instance_handler.rb → resolve_instance_handler.rb} +1 -1
  310. data/lib/javonet-ruby-sdk/core/namespace_cache/namespace_cache.rb +40 -0
  311. data/lib/javonet-ruby-sdk/core/reference_cache/references_cache.rb +33 -0
  312. data/lib/javonet-ruby-sdk/core/type_cache/type_cache.rb +40 -0
  313. data/lib/javonet-ruby-sdk/external_lib/random/formatter.rb +373 -0
  314. data/lib/javonet-ruby-sdk/external_lib/securerandom.rb +29 -266
  315. data/lib/javonet-ruby-sdk/external_lib/singleton.rb +172 -0
  316. data/lib/javonet-ruby-sdk/utils/command_type.rb +11 -3
  317. metadata +241 -181
  318. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
  319. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/ReferencesCache.py +0 -35
  320. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
  321. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/ReferencesCache.py +0 -35
  322. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
  323. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
  324. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
  325. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
  326. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
  327. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
  328. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
  329. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
  330. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/__init__.cpython-311.pyc +0 -0
  331. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/ReferencesCache.py +0 -35
  332. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
  333. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/command_handler/get_type_handler.rb +0 -22
  334. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/references_cache.rb +0 -35
  335. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/command_handler/get_type_handler.rb +0 -22
  336. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/references_cache.rb +0 -35
  337. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/command_handler/get_type_handler.rb +0 -22
  338. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/references_cache.rb +0 -35
  339. data/lib/javonet-ruby-sdk/core/handler/command_handler/get_type_handler.rb +0 -22
  340. data/lib/javonet-ruby-sdk/core/handler/references_cache.rb +0 -35
  341. /data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
  342. /data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
  343. /data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
  344. /data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
  345. /data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/{handler/CommandHandler → namespaceCache}/__init__.py +0 -0
  346. /data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/referenceCache}/__init__.py +0 -0
  347. /data/lib/javonet-ruby-sdk/Binaries/Python/{Windows/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/typeCache}/__init__.py +0 -0
  348. /data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
  349. /data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
  350. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
  351. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
  352. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
  353. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
  354. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
  355. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
  356. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
  357. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
  358. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
  359. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
  360. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
  361. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
  362. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
  363. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
  364. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
  365. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
  366. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
  367. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
  368. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
  369. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
  370. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
  371. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
  372. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
  373. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
  374. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
  375. /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
  376. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
  377. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
  378. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
  379. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
  380. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
  381. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
  382. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
  383. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
  384. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
  385. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
  386. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
  387. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
  388. /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
  389. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
  390. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
  391. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
  392. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
  393. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
  394. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
  395. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
  396. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
  397. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
  398. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
  399. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
  400. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
  401. /data/lib/javonet-ruby-sdk/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ad603f7f95e72c06820eb49bc3c3a7cc08bac589511c74e9f5d22ec4d1c6563
4
- data.tar.gz: f738432af0773b91f5f9d556d61c508ea0d3708ab8349af6898fe3f3cd91c24e
3
+ metadata.gz: 7ffa24810e5a73ba13d2c75832e74ad269f951bd01200f0c2cc4f147fce842e1
4
+ data.tar.gz: 48a3c71d6afbdc1626f40c281d7a34f8e3d8cd469709f71f17382f84c9eba37e
5
5
  SHA512:
6
- metadata.gz: 15b2293b100406bc486bf828054090952862dc6287bf2f89214cf35aeee28274e11d505f213477448bffc216a6412831dd08590bd1768ede225faefaa933a468
7
- data.tar.gz: 520db928ed1a9bfe2e6f2d9fc82c374ae53bec9f3f66864077912c263077684c0cd4fc6764982494dd40caac3adfd4b654c482e4d7d8e6dfdecff25d4662bf99
6
+ metadata.gz: 1aff9f4963b2fd9484f7a6139a190fe4c969c1d2c618083e1778f1cb484b53062fd8cddc98e410d69c03840c264d165fda33d1955cdea59fb4eb058ae0446fa7
7
+ data.tar.gz: 6defd28c2dfaeb2fd1fa4fab2cfe5d4b26bf06c92f8c2a99a3023bfa88de4a1c09b917b73dba1835337b11b09c5ef0eb638569acb213b4bd5b25fb1ebfb5e213
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.5
1
+ 2.4.6
@@ -1 +1 @@
1
- 2.4.5
1
+ 2.4.6
@@ -1 +1 @@
1
- 2.4.5
1
+ 2.4.6
@@ -1 +1 @@
1
- '2.4.5'
1
+ '2.4.6'
@@ -1,5 +1,5 @@
1
1
  const AbstractHandler = require("./AbstractHandler");
2
- const ReferencesCache = require("./ReferencesCache")
2
+ const ReferencesCache = require("../referenceCache/ReferencesCache")
3
3
 
4
4
  class DestructReferenceHandler extends AbstractHandler {
5
5
 
@@ -0,0 +1,37 @@
1
+ const AbstractHandler = require("./AbstractHandler");
2
+ const NamespaceCache = require("../namespaceCache/NamespaceCache");
3
+
4
+ class EnableNamespaceHandler extends AbstractHandler {
5
+
6
+ constructor() {
7
+ super()
8
+ this.requiredParametersCount = 1
9
+ }
10
+
11
+ process(command) {
12
+ try {
13
+ if (command.payload.length < this.requiredParametersCount) {
14
+ throw new Error(this.constructor.name + " parameters mismatch")
15
+ }
16
+ const namespace_cache = new NamespaceCache();
17
+
18
+ for (let payload of command.payload) {
19
+ if (typeof payload === 'string') {
20
+ namespace_cache.cacheNamespace(payload);
21
+ }
22
+ if (Array.isArray(payload)) {
23
+ for (let namespace_to_enable of payload) {
24
+ namespace_cache.cacheNamespace(namespace_to_enable);
25
+ }
26
+ }
27
+ }
28
+ return 0;
29
+
30
+ } catch (error) {
31
+ throw this.process_stack_trace(error, this.constructor.name)
32
+ }
33
+
34
+ }
35
+ }
36
+
37
+ module.exports = new EnableNamespaceHandler()
@@ -0,0 +1,37 @@
1
+ const AbstractHandler = require("./AbstractHandler");
2
+ const TypeCache = require("../typeCache/TypeCache");
3
+
4
+ class EnableTypeHandler extends AbstractHandler {
5
+ requiredParametersCount = 1
6
+
7
+ constructor() {
8
+ super()
9
+ }
10
+
11
+ process(command) {
12
+ try {
13
+ if (command.payload.length < this.requiredParametersCount) {
14
+ throw new Error("Get Type parameters mismatch")
15
+ }
16
+ const typeCache = new TypeCache();
17
+
18
+ for (let payload of command.payload) {
19
+ if (typeof payload === 'string') {
20
+ typeCache.cacheType(payload);
21
+ }
22
+ if (Array.isArray(payload)) {
23
+ for (let namespace_to_enable of payload) {
24
+ typeCache.cacheType(namespace_to_enable);
25
+ }
26
+ }
27
+ }
28
+ return 0;
29
+
30
+ } catch (error) {
31
+ throw this.process_stack_trace(error, this.constructor.name)
32
+ }
33
+
34
+ }
35
+ }
36
+
37
+ module.exports = new EnableTypeHandler()
@@ -1,10 +1,14 @@
1
1
  const AbstractHandler = require("./AbstractHandler");
2
+ const NamespaceCache = require("../namespaceCache/NamespaceCache");
3
+ const TypeCache = require("../typeCache/TypeCache");
2
4
 
3
5
  class GetTypeHandler extends AbstractHandler {
4
- requiredParametersCount = 1
5
6
 
6
7
  constructor() {
7
8
  super()
9
+ this.requiredParametersCount = 1
10
+ this.namespaceCache = new NamespaceCache();
11
+ this.typeCache = new TypeCache();
8
12
  }
9
13
 
10
14
  process(command) {
@@ -15,12 +19,24 @@ class GetTypeHandler extends AbstractHandler {
15
19
  const {payload} = command
16
20
  let typeName = payload[0]
17
21
  typeName = typeName.replace(".js", "")
18
- let type = global[typeName]
19
- if (type === undefined) {
20
- throw new Error(`Cannot load ${typeName}`)
22
+ let typeToReturn = global[typeName]
23
+ if (typeToReturn === undefined) {
24
+ throw new Error(`Type ${typeName} not found`)
25
+ }
26
+
27
+ if (
28
+ (this.namespaceCache.isNamespaceCacheEmpty() && this.typeCache.isTypeCacheEmpty()) || // both caches are empty
29
+ this.namespaceCache.isTypeAllowed(typeToReturn) || // namespace is allowed
30
+ this.typeCache.isTypeAllowed(typeToReturn) // type is allowed
31
+ ) {
32
+ // continue - type is allowed
21
33
  } else {
22
- return type
34
+ let allowed_namespaces = this.namespaceCache.getCachedNamespaces().join(", ");
35
+ let allowed_types = this.typeCache.getCachedTypes().join(", ");
36
+ throw new Error(`Type ${typeToReturn.name} not allowed. \nAllowed namespaces: ${allowed_namespaces}\nAllowed types: ${allowed_types}`);
23
37
  }
38
+
39
+ return typeToReturn
24
40
  } catch (error) {
25
41
  throw this.process_stack_trace(error, this.constructor.name)
26
42
  }
@@ -1,4 +1,8 @@
1
1
  const CommandType = require('../../utils/CommandType')
2
+ const Command = require("../../utils/Command");
3
+ const ReferenceCache = require('../referenceCache/ReferencesCache')
4
+ const ExceptionSerializer = require('../exception/ExceptionSerializer')
5
+
2
6
  const ValueHandler = require('./ValueHandler')
3
7
  const LoadLibraryHandler = require('./LoadLibraryHandler')
4
8
  const GetTypeHandler = require('./GetTypeHandler')
@@ -18,13 +22,10 @@ const ArrayGetSizeHandler = require('./ArrayGetSizeHandler')
18
22
  const ArrayGetRankHandler = require('./ArrayGetRankHandler')
19
23
  const ArraySetItemHandler = require('./ArraySetItemHandler')
20
24
  const ArrayHandler = require('./ArrayHandler')
25
+ const EnableNamespaceHandler = require('./EnableNamespaceHandler')
26
+ const EnableTypeHandler = require('./EnableTypeHandler')
21
27
 
22
28
 
23
- const ExceptionSerializer = require('../exception/ExceptionSerializer')
24
-
25
- const ReferenceCache = require('./ReferencesCache')
26
- const Command = require("../../utils/Command");
27
-
28
29
  function isResponseSimpleType(response) {
29
30
  let type = typeof (response)
30
31
  return ['string', 'boolean', 'number'].includes(type)
@@ -53,13 +54,15 @@ const handlers = {
53
54
  [CommandType.ArrayGetSize]: ArrayGetSizeHandler,
54
55
  [CommandType.ArrayGetRank]: ArrayGetRankHandler,
55
56
  [CommandType.ArraySetItem]: ArraySetItemHandler,
56
- [CommandType.Array]: ArrayHandler
57
+ [CommandType.Array]: ArrayHandler,
58
+ [CommandType.EnableNamespace]: EnableNamespaceHandler,
59
+ [CommandType.EnableType]: EnableTypeHandler
57
60
  }
58
61
 
59
62
  class Handler {
60
63
  handleCommand(command) {
61
64
  try {
62
- if (command.commandType == CommandType.RetrieveArray) {
65
+ if (command.commandType === CommandType.RetrieveArray) {
63
66
  let responseArray = handlers[CommandType.Reference].handleCommand(command.payload[0])
64
67
  return Command.createArrayResponse(responseArray, command.runtimeName)
65
68
  }
@@ -16,15 +16,24 @@ class LoadLibraryHandler extends AbstractHandler {
16
16
  let pathArray = lib.split(/[/\\]/)
17
17
  let libraryName = pathArray.length > 1 ? pathArray[pathArray.length - 1] : pathArray[0]
18
18
  libraryName = libraryName.replace('.js', '')
19
+
20
+ let moduleExports
21
+
19
22
  try {
20
- global[libraryName] = require(lib)
23
+ moduleExports = require(lib)
21
24
  } catch (error) {
22
25
  try {
23
- global[libraryName] = require(`${process.cwd()}/${lib}`)
26
+ moduleExports = require(`${process.cwd()}/${lib}`)
24
27
  } catch (error) {
25
28
  throw this.process_stack_trace(error, this.constructor.name)
26
29
  }
27
30
  }
31
+ global[libraryName] = moduleExports
32
+
33
+ for (const [key, value] of Object.entries(moduleExports)) {
34
+ // Here, `key` is the name of the export, and `value` is the exported type itself.
35
+ global[key] = value
36
+ }
28
37
  return 0
29
38
  }
30
39
  }
@@ -1,5 +1,5 @@
1
1
  const AbstractHandler = require("./AbstractHandler");
2
- const ReferenceCache = require("./ReferencesCache")
2
+ const ReferenceCache = require("../referenceCache/ReferencesCache")
3
3
 
4
4
  class ResolveReferenceHandler extends AbstractHandler {
5
5
  constructor() {
@@ -0,0 +1,39 @@
1
+ class NamespaceCache {
2
+ static _instance = null;
3
+ namespaceCache = [];
4
+
5
+ constructor() {
6
+ if (NamespaceCache._instance === null) {
7
+ NamespaceCache._instance = this;
8
+ }
9
+ return NamespaceCache._instance;
10
+ }
11
+
12
+ cacheNamespace(namespaceRegex) {
13
+ this.namespaceCache.push(namespaceRegex);
14
+ }
15
+
16
+ isNamespaceCacheEmpty() {
17
+ return this.namespaceCache.length === 0;
18
+ }
19
+
20
+ isTypeAllowed(typeToCheck) {
21
+ for (let pattern of this.namespaceCache) {
22
+ if (new RegExp(pattern).test(typeToCheck.constructor.name)) {
23
+ return true;
24
+ }
25
+ }
26
+ return false;
27
+ }
28
+
29
+ getCachedNamespaces() {
30
+ return this.namespaceCache;
31
+ }
32
+
33
+ clearCache() {
34
+ this.namespaceCache = [];
35
+ return 0;
36
+ }
37
+ }
38
+
39
+ module.exports = NamespaceCache;
@@ -0,0 +1,39 @@
1
+ class TypeCache {
2
+ static _instance = null;
3
+ typeCache = [];
4
+
5
+ constructor() {
6
+ if (TypeCache._instance === null) {
7
+ TypeCache._instance = this;
8
+ }
9
+ return TypeCache._instance;
10
+ }
11
+
12
+ cacheType(typRegex) {
13
+ this.typeCache.push(typRegex);
14
+ }
15
+
16
+ isTypeCacheEmpty() {
17
+ return this.typeCache.length === 0;
18
+ }
19
+
20
+ isTypeAllowed(typeToCheck) {
21
+ for (let pattern of this.typeCache) {
22
+ if (new RegExp(pattern).test(typeToCheck.name)) {
23
+ return true;
24
+ }
25
+ }
26
+ return false;
27
+ }
28
+
29
+ getCachedTypes() {
30
+ return this.typeCache;
31
+ }
32
+
33
+ clearCache() {
34
+ this.typeCache = [];
35
+ return 0;
36
+ }
37
+ }
38
+
39
+ module.exports = TypeCache;
@@ -32,5 +32,7 @@ module.exports = {
32
32
  GetEnumValue: 30,
33
33
  AsRef: 31,
34
34
  AsOut: 32,
35
- GetRefValue: 33
35
+ GetRefValue: 33,
36
+ EnableNamespace: 34,
37
+ EnableType: 35,
36
38
  }
@@ -1,5 +1,5 @@
1
1
  const AbstractHandler = require("./AbstractHandler");
2
- const ReferencesCache = require("./ReferencesCache")
2
+ const ReferencesCache = require("../referenceCache/ReferencesCache")
3
3
 
4
4
  class DestructReferenceHandler extends AbstractHandler {
5
5
 
@@ -0,0 +1,37 @@
1
+ const AbstractHandler = require("./AbstractHandler");
2
+ const NamespaceCache = require("../namespaceCache/NamespaceCache");
3
+
4
+ class EnableNamespaceHandler extends AbstractHandler {
5
+
6
+ constructor() {
7
+ super()
8
+ this.requiredParametersCount = 1
9
+ }
10
+
11
+ process(command) {
12
+ try {
13
+ if (command.payload.length < this.requiredParametersCount) {
14
+ throw new Error(this.constructor.name + " parameters mismatch")
15
+ }
16
+ const namespace_cache = new NamespaceCache();
17
+
18
+ for (let payload of command.payload) {
19
+ if (typeof payload === 'string') {
20
+ namespace_cache.cacheNamespace(payload);
21
+ }
22
+ if (Array.isArray(payload)) {
23
+ for (let namespace_to_enable of payload) {
24
+ namespace_cache.cacheNamespace(namespace_to_enable);
25
+ }
26
+ }
27
+ }
28
+ return 0;
29
+
30
+ } catch (error) {
31
+ throw this.process_stack_trace(error, this.constructor.name)
32
+ }
33
+
34
+ }
35
+ }
36
+
37
+ module.exports = new EnableNamespaceHandler()
@@ -0,0 +1,37 @@
1
+ const AbstractHandler = require("./AbstractHandler");
2
+ const TypeCache = require("../typeCache/TypeCache");
3
+
4
+ class EnableTypeHandler extends AbstractHandler {
5
+ requiredParametersCount = 1
6
+
7
+ constructor() {
8
+ super()
9
+ }
10
+
11
+ process(command) {
12
+ try {
13
+ if (command.payload.length < this.requiredParametersCount) {
14
+ throw new Error("Get Type parameters mismatch")
15
+ }
16
+ const typeCache = new TypeCache();
17
+
18
+ for (let payload of command.payload) {
19
+ if (typeof payload === 'string') {
20
+ typeCache.cacheType(payload);
21
+ }
22
+ if (Array.isArray(payload)) {
23
+ for (let namespace_to_enable of payload) {
24
+ typeCache.cacheType(namespace_to_enable);
25
+ }
26
+ }
27
+ }
28
+ return 0;
29
+
30
+ } catch (error) {
31
+ throw this.process_stack_trace(error, this.constructor.name)
32
+ }
33
+
34
+ }
35
+ }
36
+
37
+ module.exports = new EnableTypeHandler()
@@ -1,10 +1,14 @@
1
1
  const AbstractHandler = require("./AbstractHandler");
2
+ const NamespaceCache = require("../namespaceCache/NamespaceCache");
3
+ const TypeCache = require("../typeCache/TypeCache");
2
4
 
3
5
  class GetTypeHandler extends AbstractHandler {
4
- requiredParametersCount = 1
5
6
 
6
7
  constructor() {
7
8
  super()
9
+ this.requiredParametersCount = 1
10
+ this.namespaceCache = new NamespaceCache();
11
+ this.typeCache = new TypeCache();
8
12
  }
9
13
 
10
14
  process(command) {
@@ -15,12 +19,24 @@ class GetTypeHandler extends AbstractHandler {
15
19
  const {payload} = command
16
20
  let typeName = payload[0]
17
21
  typeName = typeName.replace(".js", "")
18
- let type = global[typeName]
19
- if (type === undefined) {
20
- throw new Error(`Cannot load ${typeName}`)
22
+ let typeToReturn = global[typeName]
23
+ if (typeToReturn === undefined) {
24
+ throw new Error(`Type ${typeName} not found`)
25
+ }
26
+
27
+ if (
28
+ (this.namespaceCache.isNamespaceCacheEmpty() && this.typeCache.isTypeCacheEmpty()) || // both caches are empty
29
+ this.namespaceCache.isTypeAllowed(typeToReturn) || // namespace is allowed
30
+ this.typeCache.isTypeAllowed(typeToReturn) // type is allowed
31
+ ) {
32
+ // continue - type is allowed
21
33
  } else {
22
- return type
34
+ let allowed_namespaces = this.namespaceCache.getCachedNamespaces().join(", ");
35
+ let allowed_types = this.typeCache.getCachedTypes().join(", ");
36
+ throw new Error(`Type ${typeToReturn.name} not allowed. \nAllowed namespaces: ${allowed_namespaces}\nAllowed types: ${allowed_types}`);
23
37
  }
38
+
39
+ return typeToReturn
24
40
  } catch (error) {
25
41
  throw this.process_stack_trace(error, this.constructor.name)
26
42
  }
@@ -1,4 +1,8 @@
1
1
  const CommandType = require('../../utils/CommandType')
2
+ const Command = require("../../utils/Command");
3
+ const ReferenceCache = require('../referenceCache/ReferencesCache')
4
+ const ExceptionSerializer = require('../exception/ExceptionSerializer')
5
+
2
6
  const ValueHandler = require('./ValueHandler')
3
7
  const LoadLibraryHandler = require('./LoadLibraryHandler')
4
8
  const GetTypeHandler = require('./GetTypeHandler')
@@ -18,13 +22,10 @@ const ArrayGetSizeHandler = require('./ArrayGetSizeHandler')
18
22
  const ArrayGetRankHandler = require('./ArrayGetRankHandler')
19
23
  const ArraySetItemHandler = require('./ArraySetItemHandler')
20
24
  const ArrayHandler = require('./ArrayHandler')
25
+ const EnableNamespaceHandler = require('./EnableNamespaceHandler')
26
+ const EnableTypeHandler = require('./EnableTypeHandler')
21
27
 
22
28
 
23
- const ExceptionSerializer = require('../exception/ExceptionSerializer')
24
-
25
- const ReferenceCache = require('./ReferencesCache')
26
- const Command = require("../../utils/Command");
27
-
28
29
  function isResponseSimpleType(response) {
29
30
  let type = typeof (response)
30
31
  return ['string', 'boolean', 'number'].includes(type)
@@ -53,13 +54,15 @@ const handlers = {
53
54
  [CommandType.ArrayGetSize]: ArrayGetSizeHandler,
54
55
  [CommandType.ArrayGetRank]: ArrayGetRankHandler,
55
56
  [CommandType.ArraySetItem]: ArraySetItemHandler,
56
- [CommandType.Array]: ArrayHandler
57
+ [CommandType.Array]: ArrayHandler,
58
+ [CommandType.EnableNamespace]: EnableNamespaceHandler,
59
+ [CommandType.EnableType]: EnableTypeHandler
57
60
  }
58
61
 
59
62
  class Handler {
60
63
  handleCommand(command) {
61
64
  try {
62
- if (command.commandType == CommandType.RetrieveArray) {
65
+ if (command.commandType === CommandType.RetrieveArray) {
63
66
  let responseArray = handlers[CommandType.Reference].handleCommand(command.payload[0])
64
67
  return Command.createArrayResponse(responseArray, command.runtimeName)
65
68
  }