javonet-ruby-sdk 2.6.7 → 2.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs2218RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs2218RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Configs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Configs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs2218RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhp848RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPython2RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Configs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPython2RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Plugins.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/Handler.cjs +51 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeInstanceMethodHandler.cjs +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeStaticMethodHandler.cjs +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/LoadLibraryHandler.cjs +15 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/RegisterForUpdateHandler.cjs +60 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueForUpdateHandler.cjs +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs +11 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandSerializer.cjs +3 -8
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/Receiver.cjs +6 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Activator.cjs +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ActivatorDetails.cjs +13 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs +140 -62
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Javonet.cjs +3 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeContext.cjs +9 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/configuration/ConfigSourceResolver.cjs +43 -21
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/ComplexTypeResolver.cjs +84 -34
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/Handler.d.ts +9 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/RegisterForUpdateHandler.d.ts +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueForUpdateHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandSerializer.d.ts +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/Receiver.d.ts +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Activator.d.ts +12 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ActivatorDetails.d.ts +5 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ConfigRuntimeFactory.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts +20 -22
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Javonet.d.ts +2 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/RuntimeContext.d.ts +4 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/configuration/ConfigSourceResolver.d.ts +21 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/ComplexTypeResolver.d.ts +21 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CommandType.d.ts +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Primitives.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CommandType.cjs +3 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Primitives.cjs +201 -0
- 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
- 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
- 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
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- 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
- 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
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +86 -86
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm +29 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/PerlHandler.pm +16 -9
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +2 -1
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- 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
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +24 -24
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm +29 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/PerlHandler.pm +16 -9
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +2 -1
- data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/handler/LoadLibraryHandler.php +56 -21
- data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/interpreter/Interpreter.php +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandDeserializer.php +219 -106
- data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandSerializer.php +55 -13
- data/lib/javonet-ruby-sdk/Binaries/Php/javonet/utils/Command.php +27 -9
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/AsOutHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/CreateClassInstanceHandler.py +0 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/Handler.py +26 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/LoadLibraryHandler.py +54 -14
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/RegisterForUpdateHandler.py +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/ValueForUpdateHandler.py +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AddEventListenerHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AsOutHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AsRefHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ConvertTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateNullHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ExceptionHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GenerateLibHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetAsyncOperationResultHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetGlobalFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetKwargHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetModuleHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetRefValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetResultTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HeartBeatHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGenericMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGenericStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGlobalFunctionHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/OptimizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PluginWrapperHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RegisterForUpdateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RetrieveArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueForUpdateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/CommandType.py +3 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/LazyModuleLoader.py +8 -11
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/LazyModuleLoader.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/TypesHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/UtilsConst.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/ExceptionSerializer.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionThrower.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/JavonetException.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/MessageHelper.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- data/lib/javonet-ruby-sdk/core/handler/handler.rb +50 -9
- data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +22 -9
- data/lib/javonet-ruby-sdk/core/handler/register_for_update_handler.rb +28 -0
- data/lib/javonet-ruby-sdk/core/handler/value_for_update_handler.rb +11 -0
- data/lib/javonet-ruby-sdk/sdk/config_runtime_factory.rb +8 -0
- data/lib/javonet-ruby-sdk/utils/command_type.rb +6 -0
- data/lib/javonet-ruby-sdk/utils/exceptions/exception_serializer.rb +0 -1
- metadata +18 -2
|
@@ -7,20 +7,20 @@ from typing import Optional, Any
|
|
|
7
7
|
class LazyModuleLoader:
|
|
8
8
|
"""Centralized module loader that only executes code when actually needed."""
|
|
9
9
|
_loaded_specs = {}
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
@classmethod
|
|
12
12
|
def register_module_path(cls, module_name: str, file_path: str):
|
|
13
13
|
"""Register a module for lazy loading without executing it."""
|
|
14
14
|
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
|
15
15
|
cls._loaded_specs[module_name] = spec
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
@classmethod
|
|
18
18
|
def get_module(cls, module_name: str) -> Optional[Any]:
|
|
19
19
|
"""Get module, loading it only if necessary."""
|
|
20
20
|
# Check if already loaded
|
|
21
21
|
if module_name in sys.modules:
|
|
22
22
|
return sys.modules[module_name]
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# Check if we have a spec for lazy loading
|
|
25
25
|
if module_name in cls._loaded_specs:
|
|
26
26
|
spec = cls._loaded_specs[module_name]
|
|
@@ -28,20 +28,17 @@ class LazyModuleLoader:
|
|
|
28
28
|
spec.loader.exec_module(module) # Execute only when needed
|
|
29
29
|
sys.modules[module_name] = module
|
|
30
30
|
return module
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
# Try standard import as fallback
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
except ImportError:
|
|
36
|
-
return None
|
|
37
|
-
|
|
33
|
+
return importlib.import_module(module_name)
|
|
34
|
+
|
|
38
35
|
@classmethod
|
|
39
36
|
def is_module_available(cls, module_name: str) -> bool:
|
|
40
37
|
"""Check if module is available without loading it."""
|
|
41
|
-
return (module_name in sys.modules or
|
|
38
|
+
return (module_name in sys.modules or
|
|
42
39
|
module_name in cls._loaded_specs or
|
|
43
40
|
importlib.util.find_spec(module_name) is not None)
|
|
44
|
-
|
|
41
|
+
|
|
45
42
|
@classmethod
|
|
46
43
|
def safe_getattr(cls, obj, name):
|
|
47
44
|
"""Safely get attribute without triggering property getters with side effects."""
|
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/LazyModuleLoader.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/TypesHandler.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/UtilsConst.cpython-312.pyc
CHANGED
|
Binary file
|
data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -29,7 +29,7 @@ class ExceptionSerializer:
|
|
|
29
29
|
file_name = ExceptionSerializer.safe_get_file_name(frame_summary)
|
|
30
30
|
line = ExceptionSerializer.safe_get_line(frame_summary)
|
|
31
31
|
|
|
32
|
-
if "javonet" not in
|
|
32
|
+
if "javonet" not in file_name and "reflect" not in class_name:
|
|
33
33
|
stack_classes.append(class_name)
|
|
34
34
|
stack_methods.append(method_name)
|
|
35
35
|
stack_lines.append(str(line))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
2.6.
|
|
1
|
+
2.6.10
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
require_relative '../../utils/runtime_name_javonet'
|
|
2
2
|
require_relative '../../utils/command_type'
|
|
3
3
|
require_relative '../../utils/command'
|
|
4
|
+
require_relative '../../utils/types_handler'
|
|
5
|
+
|
|
6
|
+
require_relative '../../utils/exceptions/exception_serializer'
|
|
7
|
+
|
|
8
|
+
require_relative '../../core/reference_cache/references_cache'
|
|
9
|
+
|
|
4
10
|
require_relative '../../core/handler/handler_dictionary'
|
|
5
11
|
require_relative '../../core/handler/abstract_handler'
|
|
6
12
|
require_relative '../../core/handler/value_handler'
|
|
@@ -51,9 +57,8 @@ require_relative '../../core/handler/get_async_operation_result_handler'
|
|
|
51
57
|
require_relative '../../core/handler/as_kwargs_handler'
|
|
52
58
|
require_relative '../../core/handler/get_result_type_handler'
|
|
53
59
|
require_relative '../../core/handler/get_global_field_handler'
|
|
54
|
-
require_relative '../../core/
|
|
55
|
-
require_relative '../../
|
|
56
|
-
require_relative '../../utils/types_handler'
|
|
60
|
+
require_relative '../../core/handler/register_for_update_handler'
|
|
61
|
+
require_relative '../../core/handler/value_for_update_handler'
|
|
57
62
|
|
|
58
63
|
class Handler < AbstractHandler
|
|
59
64
|
def initialize
|
|
@@ -106,6 +111,8 @@ class Handler < AbstractHandler
|
|
|
106
111
|
as_kwargs_handler = AsKwargsHandler.new
|
|
107
112
|
get_result_type_handler = GetResultTypeHandler.new
|
|
108
113
|
get_global_field_handler = GetGlobalFieldHandler.new
|
|
114
|
+
register_for_update_handler = RegisterForUpdateHandler.new
|
|
115
|
+
value_for_update_handler = ValueForUpdateHandler.new
|
|
109
116
|
|
|
110
117
|
$handler_dict[CommandType::VALUE] = value_handler
|
|
111
118
|
$handler_dict[CommandType::LOAD_LIBRARY] = load_library_handler
|
|
@@ -155,6 +162,8 @@ class Handler < AbstractHandler
|
|
|
155
162
|
$handler_dict[CommandType::AS_KWARGS] = as_kwargs_handler
|
|
156
163
|
$handler_dict[CommandType::GET_RESULT_TYPE] = get_result_type_handler
|
|
157
164
|
$handler_dict[CommandType::GET_GLOBAL_FIELD] = get_global_field_handler
|
|
165
|
+
$handler_dict[CommandType::REGISTER_FOR_UPDATE] = register_for_update_handler
|
|
166
|
+
$handler_dict[CommandType::VALUE_FOR_UPDATE] = value_for_update_handler
|
|
158
167
|
end
|
|
159
168
|
|
|
160
169
|
def handle_command(command)
|
|
@@ -163,21 +172,53 @@ class Handler < AbstractHandler
|
|
|
163
172
|
response_array = $handler_dict[CommandType::REFERENCE].handle_command(command.payload[0])
|
|
164
173
|
return Command.create_array_response(response_array, command.runtime_name)
|
|
165
174
|
end
|
|
175
|
+
|
|
166
176
|
response = $handler_dict[command.command_type].handle_command(command)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
elsif response.is_a? Exception
|
|
177
|
+
|
|
178
|
+
if response.is_a? Exception
|
|
170
179
|
ExceptionSerializer.serialize_exception(response, command)
|
|
171
180
|
else
|
|
172
|
-
|
|
173
|
-
guid = reference_cache.cache_reference(response)
|
|
174
|
-
Command.create_reference(guid, command.runtime_name)
|
|
181
|
+
parse_response(response, command.runtime_name)
|
|
175
182
|
end
|
|
176
183
|
rescue Exception => e
|
|
177
184
|
ExceptionSerializer.serialize_exception(e, command)
|
|
178
185
|
end
|
|
179
186
|
end
|
|
180
187
|
|
|
188
|
+
private
|
|
189
|
+
|
|
190
|
+
def parse_response(response, runtime_name)
|
|
191
|
+
# Build base response (primitive vs reference)
|
|
192
|
+
response_command =
|
|
193
|
+
if TypesHandler.primitive_or_none?(response)
|
|
194
|
+
Command.create_response(response, runtime_name)
|
|
195
|
+
else
|
|
196
|
+
reference_cache = ReferencesCache.instance
|
|
197
|
+
guid = reference_cache.cache_reference(response)
|
|
198
|
+
Command.create_reference(guid, runtime_name)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Append ValueForUpdate commands from invocation contexts if present
|
|
202
|
+
invocation_contexts = RegisterForUpdateHandler.get_or_create_context_dict
|
|
203
|
+
if invocation_contexts && !invocation_contexts.empty?
|
|
204
|
+
ref_cache = ReferencesCache.instance
|
|
205
|
+
invocation_contexts.each do |key, value|
|
|
206
|
+
instance_guid = ref_cache.cache_reference(value)
|
|
207
|
+
update_context_command = Command.new(
|
|
208
|
+
runtime_name,
|
|
209
|
+
CommandType::VALUE_FOR_UPDATE,
|
|
210
|
+
[key.to_s,
|
|
211
|
+
instance_guid]
|
|
212
|
+
)
|
|
213
|
+
response_command = response_command.add_arg_to_payload(update_context_command)
|
|
214
|
+
end
|
|
215
|
+
# Clear all entries after processing this request
|
|
216
|
+
invocation_contexts.clear
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
response_command
|
|
220
|
+
end
|
|
221
|
+
|
|
181
222
|
def is_response_array(response)
|
|
182
223
|
response.is_a? Array
|
|
183
224
|
end
|
|
@@ -13,17 +13,30 @@ class LoadLibraryHandler < AbstractCommandHandler
|
|
|
13
13
|
if command.payload.length < @required_parameters_count
|
|
14
14
|
raise ArgumentError.new "Load library parameters mismatch"
|
|
15
15
|
end
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
|
|
17
|
+
assembly_name =
|
|
18
|
+
if command.payload.length > @required_parameters_count
|
|
19
|
+
command.payload[1]
|
|
20
|
+
else
|
|
21
|
+
command.payload[0]
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Normalize to absolute path
|
|
25
|
+
expanded_path = File.expand_path(assembly_name)
|
|
26
|
+
|
|
27
|
+
# Load only once per absolute path
|
|
28
|
+
if @@loaded_libraries.include?(expanded_path)
|
|
29
|
+
return 0
|
|
20
30
|
end
|
|
21
|
-
|
|
31
|
+
|
|
22
32
|
# Check if the library exists:
|
|
23
|
-
raise LoadError.new("Library not found: #{assembly_name}") unless File.exist?(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
raise LoadError.new("Library not found: #{assembly_name}") unless File.exist?(expanded_path)
|
|
34
|
+
|
|
35
|
+
# Require by path; Ruby will also avoid re-loading the same feature,
|
|
36
|
+
# but we additionally track it ourselves.
|
|
37
|
+
require expanded_path
|
|
38
|
+
|
|
39
|
+
@@loaded_libraries << expanded_path
|
|
27
40
|
return 0
|
|
28
41
|
rescue Exception => e
|
|
29
42
|
return e
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require_relative 'abstract_command_handler'
|
|
2
|
+
|
|
3
|
+
class RegisterForUpdateHandler < AbstractCommandHandler
|
|
4
|
+
def initialize
|
|
5
|
+
@required_parameters_count = 2
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def self.get_or_create_context_dict
|
|
9
|
+
Thread.current[:register_for_update_handler_context] ||= {}
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def process(command)
|
|
13
|
+
if command.payload.length < @required_parameters_count
|
|
14
|
+
raise ArgumentError.new "Register for update parameters mismatch"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
obj_to_register = command.payload[0]
|
|
18
|
+
|
|
19
|
+
guid_to_register = nil
|
|
20
|
+
if command.payload.length > 1 && command.payload[1]
|
|
21
|
+
guid_to_register = command.payload[1].to_s.strip.downcase
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
ctx = self.class.get_or_create_context_dict
|
|
25
|
+
ctx[guid_to_register] = obj_to_register
|
|
26
|
+
obj_to_register
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -71,6 +71,14 @@ class ConfigRuntimeFactory < AbstractConfigRuntimeFactory
|
|
|
71
71
|
get_runtime_context(RuntimeNameJavonet::PYTHON, config_name)
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# Creates a RuntimeContext instance to interact with PHP runtime.
|
|
75
|
+
# @param config_name [String] The name of the configuration to use.
|
|
76
|
+
# @return [RuntimeContext] a RuntimeContext instance for the PHP runtime
|
|
77
|
+
# @see Refer to this {https://www.javonet.com/guides/v2/ruby/foundations/runtime-context article on Javonet Guides}
|
|
78
|
+
def php(config_name = "default")
|
|
79
|
+
get_runtime_context(RuntimeNameJavonet::PHP, config_name)
|
|
80
|
+
end
|
|
81
|
+
|
|
74
82
|
# Creates a RuntimeContext instance to interact with Python 2.7 runtime.
|
|
75
83
|
# @param config_name [String] The name of the configuration to use.
|
|
76
84
|
# @return [RuntimeContext] a RuntimeContext instance for the Python 2.7 runtime
|
|
@@ -47,6 +47,8 @@ class CommandType
|
|
|
47
47
|
AS_KWARGS = 45
|
|
48
48
|
GET_RESULT_TYPE = 46
|
|
49
49
|
GET_GLOBAL_FIELD = 47
|
|
50
|
+
REGISTER_FOR_UPDATE = 48
|
|
51
|
+
VALUE_FOR_UPDATE = 49
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
def self.get_name(command_number)
|
|
@@ -141,6 +143,10 @@ class CommandType
|
|
|
141
143
|
return 'PLUGIN_WRAPPER'
|
|
142
144
|
when 44
|
|
143
145
|
return 'GET_ASYNC_OPERATION_RESULT'
|
|
146
|
+
when 48
|
|
147
|
+
return 'REGISTER_FOR_UPDATE'
|
|
148
|
+
when 49
|
|
149
|
+
return 'VALUE_FOR_UPDATE'
|
|
144
150
|
else
|
|
145
151
|
raise 'Unknown command type'
|
|
146
152
|
end
|
|
@@ -16,7 +16,6 @@ class ExceptionSerializer
|
|
|
16
16
|
if !stack_trace.nil? && !stack_trace.empty?
|
|
17
17
|
stack_trace.each_with_index do |value, index|
|
|
18
18
|
stack_file, stack_class, stack_line, stack_method = parse_stack_frame(value)
|
|
19
|
-
# Extract the file name without the full path - commented for better debugging
|
|
20
19
|
unless stack_file.include?("javonet-ruby-sdk") or stack_file.include?("Binaries/Ruby")
|
|
21
20
|
append_to_string(stack_classes, stack_class)
|
|
22
21
|
append_to_string(stack_methods, stack_method)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: javonet-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SdNCenter Sp. z o. o.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -465,11 +465,13 @@ files:
|
|
|
465
465
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/OptimizeHandler.cjs
|
|
466
466
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs
|
|
467
467
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PluginWrapperHandler.cjs
|
|
468
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/RegisterForUpdateHandler.cjs
|
|
468
469
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ResolveReferenceHandler.cjs
|
|
469
470
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/RetrieveArrayHandler.cjs
|
|
470
471
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetGlobalStaticFieldHandler.cjs
|
|
471
472
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetInstanceFieldHandler.cjs
|
|
472
473
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetStaticFieldHandler.cjs
|
|
474
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueForUpdateHandler.cjs
|
|
473
475
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueHandler.cjs
|
|
474
476
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs
|
|
475
477
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/namespaceCache/NamespaceCache.cjs
|
|
@@ -487,6 +489,7 @@ files:
|
|
|
487
489
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/typeCache/TypeCache.cjs
|
|
488
490
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClient.cjs
|
|
489
491
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClientBrowser.cjs
|
|
492
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Activator.cjs
|
|
490
493
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ActivatorDetails.cjs
|
|
491
494
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs
|
|
492
495
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs
|
|
@@ -558,11 +561,13 @@ files:
|
|
|
558
561
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/OptimizeHandler.d.ts
|
|
559
562
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts
|
|
560
563
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PluginWrapperHandler.d.ts
|
|
564
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/RegisterForUpdateHandler.d.ts
|
|
561
565
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ResolveReferenceHandler.d.ts
|
|
562
566
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/RetrieveArrayHandler.d.ts
|
|
563
567
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetGlobalStaticFieldHandler.d.ts
|
|
564
568
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetInstanceFieldHandler.d.ts
|
|
565
569
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetStaticFieldHandler.d.ts
|
|
570
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueForUpdateHandler.d.ts
|
|
566
571
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueHandler.d.ts
|
|
567
572
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts
|
|
568
573
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/namespaceCache/NamespaceCache.d.ts
|
|
@@ -580,6 +585,7 @@ files:
|
|
|
580
585
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/typeCache/TypeCache.d.ts
|
|
581
586
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClient.d.ts
|
|
582
587
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClientBrowser.d.ts
|
|
588
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Activator.d.ts
|
|
583
589
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ActivatorDetails.d.ts
|
|
584
590
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ConfigRuntimeFactory.d.ts
|
|
585
591
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts
|
|
@@ -612,6 +618,7 @@ files:
|
|
|
612
618
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CustomError.d.ts
|
|
613
619
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/ExceptionType.d.ts
|
|
614
620
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/IsThenable.d.ts
|
|
621
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Primitives.d.ts
|
|
615
622
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Runtime.d.ts
|
|
616
623
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLogger.d.ts
|
|
617
624
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLoggerBrowser.d.ts
|
|
@@ -641,6 +648,7 @@ files:
|
|
|
641
648
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CustomError.cjs
|
|
642
649
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/ExceptionType.cjs
|
|
643
650
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/IsThenable.cjs
|
|
651
|
+
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Primitives.cjs
|
|
644
652
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Runtime.cjs
|
|
645
653
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLogger.cjs
|
|
646
654
|
- lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLoggerBrowser.cjs
|
|
@@ -1376,6 +1384,7 @@ files:
|
|
|
1376
1384
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeInstanceMethodHandler.pm
|
|
1377
1385
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeStaticMethodHandler.pm
|
|
1378
1386
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm
|
|
1387
|
+
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm
|
|
1379
1388
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/ResolveInstanceHandler.pm
|
|
1380
1389
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/SetInstanceFieldHandler.pm
|
|
1381
1390
|
- lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/SetStaticFieldHandler.pm
|
|
@@ -1585,6 +1594,7 @@ files:
|
|
|
1585
1594
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeInstanceMethodHandler.pm
|
|
1586
1595
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeStaticMethodHandler.pm
|
|
1587
1596
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm
|
|
1597
|
+
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm
|
|
1588
1598
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/ResolveInstanceHandler.pm
|
|
1589
1599
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/SetInstanceFieldHandler.pm
|
|
1590
1600
|
- lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/SetStaticFieldHandler.pm
|
|
@@ -1781,10 +1791,12 @@ files:
|
|
|
1781
1791
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/OptimizeHandler.py
|
|
1782
1792
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/PassDelegateHandler.py
|
|
1783
1793
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/PluginWrapperHandler.py
|
|
1794
|
+
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/RegisterForUpdateHandler.py
|
|
1784
1795
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/ResolveInstanceHandler.py
|
|
1785
1796
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/RetrieveArrayHandler.py
|
|
1786
1797
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/SetInstanceFieldHandler.py
|
|
1787
1798
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/SetStaticFieldHandler.py
|
|
1799
|
+
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/ValueForUpdateHandler.py
|
|
1788
1800
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/ValueHandler.py
|
|
1789
1801
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__init__.py
|
|
1790
1802
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc
|
|
@@ -1834,10 +1846,12 @@ files:
|
|
|
1834
1846
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/OptimizeHandler.cpython-312.pyc
|
|
1835
1847
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc
|
|
1836
1848
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PluginWrapperHandler.cpython-312.pyc
|
|
1849
|
+
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RegisterForUpdateHandler.cpython-312.pyc
|
|
1837
1850
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc
|
|
1838
1851
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RetrieveArrayHandler.cpython-312.pyc
|
|
1839
1852
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc
|
|
1840
1853
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc
|
|
1854
|
+
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueForUpdateHandler.cpython-312.pyc
|
|
1841
1855
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc
|
|
1842
1856
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc
|
|
1843
1857
|
- lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/Interpreter.py
|
|
@@ -2068,10 +2082,12 @@ files:
|
|
|
2068
2082
|
- lib/javonet-ruby-sdk/core/handler/optimize_handler.rb
|
|
2069
2083
|
- lib/javonet-ruby-sdk/core/handler/pass_delegate_handler.rb
|
|
2070
2084
|
- lib/javonet-ruby-sdk/core/handler/plugin_wrapper_handler.rb
|
|
2085
|
+
- lib/javonet-ruby-sdk/core/handler/register_for_update_handler.rb
|
|
2071
2086
|
- lib/javonet-ruby-sdk/core/handler/resolve_instance_handler.rb
|
|
2072
2087
|
- lib/javonet-ruby-sdk/core/handler/retrieve_array_handler.rb
|
|
2073
2088
|
- lib/javonet-ruby-sdk/core/handler/set_instance_field_handler.rb
|
|
2074
2089
|
- lib/javonet-ruby-sdk/core/handler/set_static_field_handler.rb
|
|
2090
|
+
- lib/javonet-ruby-sdk/core/handler/value_for_update_handler.rb
|
|
2075
2091
|
- lib/javonet-ruby-sdk/core/handler/value_handler.rb
|
|
2076
2092
|
- lib/javonet-ruby-sdk/core/interpreter/interpreter.rb
|
|
2077
2093
|
- lib/javonet-ruby-sdk/core/namespace_cache/namespace_cache.rb
|