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
|
@@ -21,8 +21,10 @@ __export(ComplexTypeResolver_exports, {
|
|
|
21
21
|
ComplexTypeResolver: () => ComplexTypeResolver
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(ComplexTypeResolver_exports);
|
|
24
|
+
var import_Primitives = require("../../utils/Primitives.cjs");
|
|
24
25
|
var import_Runtime = require("../../utils/Runtime.cjs");
|
|
25
26
|
var import_RuntimeName = require("../../utils/RuntimeName.cjs");
|
|
27
|
+
var import_Activator = require("../Activator.cjs");
|
|
26
28
|
var import_ActivatorDetails = require("../ActivatorDetails.cjs");
|
|
27
29
|
var import_InvocationContext = require("../InvocationContext.cjs");
|
|
28
30
|
var import_JavaTypeParsingFunctions = require("./typeParsingFunctions/JavaTypeParsingFunctions.cjs");
|
|
@@ -31,17 +33,19 @@ var import_NodejsTypeParsingFunctions = require("./typeParsingFunctions/NodejsTy
|
|
|
31
33
|
var import_PythonTypeParsingFunctions = require("./typeParsingFunctions/PythonTypeParsingFunctions.cjs");
|
|
32
34
|
const import_meta = {};
|
|
33
35
|
const dynamicImport = (0, import_Runtime.getRequire)(import_meta.url);
|
|
36
|
+
const typeParsingFunctions = /* @__PURE__ */ new Map([
|
|
37
|
+
[import_RuntimeName.RuntimeName.Netcore, import_NetcoreTypeParsingFunctions.NetcoreTypeParsingFunctions],
|
|
38
|
+
[import_RuntimeName.RuntimeName.Jvm, import_JavaTypeParsingFunctions.JavaTypeParsingFunctions],
|
|
39
|
+
[import_RuntimeName.RuntimeName.Nodejs, import_NodejsTypeParsingFunctions.NodejsTypeParsingFunctions],
|
|
40
|
+
[import_RuntimeName.RuntimeName.Python, import_PythonTypeParsingFunctions.PythonTypeParsingFunctions],
|
|
41
|
+
[import_RuntimeName.RuntimeName.Python27, import_PythonTypeParsingFunctions.PythonTypeParsingFunctions]
|
|
42
|
+
]);
|
|
34
43
|
class ComplexTypeResolver {
|
|
35
44
|
/** @type {Map<string, ActivatorDetails>} */
|
|
36
|
-
#typeMap
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
[import_RuntimeName.RuntimeName.Jvm, import_JavaTypeParsingFunctions.JavaTypeParsingFunctions],
|
|
41
|
-
[import_RuntimeName.RuntimeName.Nodejs, import_NodejsTypeParsingFunctions.NodejsTypeParsingFunctions],
|
|
42
|
-
[import_RuntimeName.RuntimeName.Python, import_PythonTypeParsingFunctions.PythonTypeParsingFunctions],
|
|
43
|
-
[import_RuntimeName.RuntimeName.Python27, import_PythonTypeParsingFunctions.PythonTypeParsingFunctions]
|
|
44
|
-
]);
|
|
45
|
+
#typeMap;
|
|
46
|
+
constructor() {
|
|
47
|
+
this.#typeMap = /* @__PURE__ */ new Map();
|
|
48
|
+
}
|
|
45
49
|
/**
|
|
46
50
|
* Register a custom type mapping
|
|
47
51
|
* @param {string} resultType - The type name from the target runtime
|
|
@@ -56,38 +60,40 @@ class ComplexTypeResolver {
|
|
|
56
60
|
/**
|
|
57
61
|
* Convert InvocationContext result to appropriate JavaScript type
|
|
58
62
|
* @param {InvocationContext} ic - The invocation context
|
|
59
|
-
* @returns {Promise<any>
|
|
63
|
+
* @returns {Promise<any>} The converted result
|
|
60
64
|
*/
|
|
61
|
-
convertResult(ic) {
|
|
65
|
+
async convertResult(ic) {
|
|
62
66
|
const runtimeName = ic.getRuntimeName();
|
|
63
|
-
const resultType = ic.getResultType();
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
let parsingFunc = null;
|
|
67
|
-
if (resultType instanceof Promise) {
|
|
68
|
-
parsingFunc = resultType.then((result) => {
|
|
69
|
-
parsingFunc = runtimeDict.get(result);
|
|
70
|
-
});
|
|
71
|
-
} else {
|
|
72
|
-
parsingFunc = runtimeDict.get(resultType);
|
|
73
|
-
}
|
|
74
|
-
if (parsingFunc) {
|
|
75
|
-
return parsingFunc(ic);
|
|
76
|
-
}
|
|
67
|
+
const resultType = await ic.getResultType();
|
|
68
|
+
if (!resultType) {
|
|
69
|
+
throw new Error("resultType is not valid");
|
|
77
70
|
}
|
|
78
|
-
let
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
let underlyingType = ComplexTypeResolver.tryGetUnderlyingArrayType(resultType);
|
|
72
|
+
if (underlyingType !== null) {
|
|
73
|
+
const { Type } = (
|
|
74
|
+
/** @type {ActivatorDetails} */
|
|
75
|
+
this.#typeMap.get(underlyingType)
|
|
76
|
+
);
|
|
77
|
+
const complexTypesArray = await ic.retrieveArray();
|
|
78
|
+
return complexTypesArray.map((item) => import_Activator.Activator.createInstance(Type, item));
|
|
85
79
|
}
|
|
80
|
+
const parsingFunction = ComplexTypeResolver.tryGetTypeParsingFunction(runtimeName, resultType);
|
|
81
|
+
if (parsingFunction) {
|
|
82
|
+
return parsingFunction(ic);
|
|
83
|
+
}
|
|
84
|
+
const activatorDetails = this.tryGetValueFromTypeMap(resultType);
|
|
86
85
|
if (!activatorDetails) {
|
|
87
86
|
throw new Error(`No type registered for key '${resultType}'.`);
|
|
88
87
|
}
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
if (runtimeName === import_RuntimeName.RuntimeName.Nodejs) {
|
|
89
|
+
const value = await ic.getValue();
|
|
90
|
+
if (value) {
|
|
91
|
+
if (value instanceof activatorDetails.Type) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return import_Activator.Activator.createInstance(activatorDetails.Type, activatorDetails.arguments ?? null);
|
|
91
97
|
}
|
|
92
98
|
/**
|
|
93
99
|
* Resolve type from string name and optional module
|
|
@@ -121,6 +127,50 @@ class ComplexTypeResolver {
|
|
|
121
127
|
}
|
|
122
128
|
return typeObj;
|
|
123
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Attempts to extract the underlying element type from an array type string
|
|
132
|
+
* @param {string} type - The type string to parse (e.g., "MyType[]")
|
|
133
|
+
* @returns {string | null} Object indicating success and the element type
|
|
134
|
+
* @throws {Error} If the array element type is a primitive type
|
|
135
|
+
*/
|
|
136
|
+
static tryGetUnderlyingArrayType(type) {
|
|
137
|
+
if (typeof type !== "string" || !type.includes("[")) {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
let trimmedType = type.trim();
|
|
141
|
+
if (!trimmedType) return null;
|
|
142
|
+
const commaIndex = trimmedType.indexOf(",");
|
|
143
|
+
if (commaIndex > 0) {
|
|
144
|
+
trimmedType = trimmedType.substring(0, commaIndex).trim();
|
|
145
|
+
}
|
|
146
|
+
const bracketIndex = trimmedType.indexOf("[");
|
|
147
|
+
if (bracketIndex > 0) {
|
|
148
|
+
trimmedType = trimmedType.substring(0, bracketIndex).trim();
|
|
149
|
+
}
|
|
150
|
+
if (import_Primitives.PrimitiveSet.has(trimmedType)) {
|
|
151
|
+
throw new Error("Primitive array element types are not supported.");
|
|
152
|
+
}
|
|
153
|
+
return trimmedType;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @param {RuntimeName} runtimeName
|
|
157
|
+
* @param {string} resultType
|
|
158
|
+
* @returns {any}
|
|
159
|
+
*/
|
|
160
|
+
static tryGetTypeParsingFunction(runtimeName, resultType) {
|
|
161
|
+
const runtimeDict = typeParsingFunctions.get(runtimeName);
|
|
162
|
+
return runtimeDict ? runtimeDict.get(resultType) ?? null : null;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @param {string} resultType
|
|
166
|
+
* @returns {ActivatorDetails | null}
|
|
167
|
+
*/
|
|
168
|
+
tryGetValueFromTypeMap(resultType) {
|
|
169
|
+
if (!resultType) {
|
|
170
|
+
throw new Error("resultType is not valid");
|
|
171
|
+
}
|
|
172
|
+
return this.#typeMap.get(resultType) ?? null;
|
|
173
|
+
}
|
|
124
174
|
}
|
|
125
175
|
// Annotate the CommonJS export names for ESM import in node:
|
|
126
176
|
0 && (module.exports = {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export type RuntimeName = import("../../types.d.ts").RuntimeName;
|
|
2
2
|
export class Handler {
|
|
3
|
+
/**
|
|
4
|
+
* Prefer innerException (or cause) when available.
|
|
5
|
+
* @param {any} error
|
|
6
|
+
* @param {Command} command
|
|
7
|
+
* @returns {Command}
|
|
8
|
+
*/
|
|
9
|
+
static resolveException(error: any, command: Command): Command;
|
|
3
10
|
/**
|
|
4
11
|
* @param {import('../interpreter/Interpreter.js').Interpreter} interpreter
|
|
5
12
|
*/
|
|
@@ -7,8 +14,9 @@ export class Handler {
|
|
|
7
14
|
interpreter: import("../interpreter/Interpreter.js").Interpreter;
|
|
8
15
|
/**
|
|
9
16
|
* @param {Command} command
|
|
17
|
+
* @returns {Promise<Command> | Command}
|
|
10
18
|
*/
|
|
11
|
-
handleCommand(command: Command): Command |
|
|
19
|
+
handleCommand(command: Command): Promise<Command> | Command;
|
|
12
20
|
/**
|
|
13
21
|
* @param {any} response
|
|
14
22
|
* @param {RuntimeName} runtimeName
|
|
@@ -68,9 +68,9 @@ export class PassDelegateHandler extends AbstractHandler {
|
|
|
68
68
|
/**
|
|
69
69
|
* Creates a method call to execute the command.
|
|
70
70
|
* @param {Command} command - The command object.
|
|
71
|
-
* @returns {any} The response object.
|
|
71
|
+
* @returns {Promise<any>} The response object.
|
|
72
72
|
*/
|
|
73
|
-
createExecuteCall(command: Command): any
|
|
73
|
+
createExecuteCall(command: Command): Promise<any>;
|
|
74
74
|
/**
|
|
75
75
|
* Retrieves the response payload from the execution call.
|
|
76
76
|
* @param {Object<string, any>} executeCall - Object containing the execution call.
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/RegisterForUpdateHandler.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export class RegisterForUpdateHandler extends AbstractHandler {
|
|
2
|
+
static _invocationContexts: {
|
|
3
|
+
Value: Map<any, any>;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Ensure context map exists and return it.
|
|
7
|
+
* @returns {Map<string, any>}
|
|
8
|
+
*/
|
|
9
|
+
static getOrCreateContextMap(): Map<string, any>;
|
|
10
|
+
requiredParametersCount: number;
|
|
11
|
+
/**
|
|
12
|
+
* @param {any} command
|
|
13
|
+
* @returns {any}
|
|
14
|
+
*/
|
|
15
|
+
process(command: any): any;
|
|
16
|
+
}
|
|
17
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
|
@@ -7,9 +7,9 @@ export class Interpreter {
|
|
|
7
7
|
*
|
|
8
8
|
* @param {Command} command
|
|
9
9
|
* @param {IConnectionData} connectionData
|
|
10
|
-
* @returns {
|
|
10
|
+
* @returns {Promise<Command>}
|
|
11
11
|
*/
|
|
12
|
-
execute(command: Command, connectionData: IConnectionData):
|
|
12
|
+
execute(command: Command, connectionData: IConnectionData): Promise<Command>;
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @param {Uint8Array} messageByteArray
|
|
@@ -5,12 +5,12 @@ export type IConnectionData = import("../../utils/connectionData/IConnectionData
|
|
|
5
5
|
export class CommandSerializer {
|
|
6
6
|
/**
|
|
7
7
|
* Serializes the root command with connection data and optional runtime version.
|
|
8
|
-
* @param {
|
|
8
|
+
* @param {Command} rootCommand
|
|
9
9
|
* @param {IConnectionData} connectionData
|
|
10
10
|
* @param {number} runtimeVersion
|
|
11
|
-
* @returns {
|
|
11
|
+
* @returns {Uint8Array}
|
|
12
12
|
*/
|
|
13
|
-
serialize(rootCommand:
|
|
13
|
+
serialize(rootCommand: Command, connectionData: IConnectionData, runtimeVersion?: number): Uint8Array;
|
|
14
14
|
/**
|
|
15
15
|
* Recursively serializes command payload.
|
|
16
16
|
* @param {Command} command
|
|
@@ -3,14 +3,14 @@ export class Receiver {
|
|
|
3
3
|
static getRuntimeInfo(): string;
|
|
4
4
|
/**
|
|
5
5
|
* @param {Uint8Array} messageByteArray
|
|
6
|
-
* @returns {Promise<Uint8Array>
|
|
6
|
+
* @returns {Promise<Uint8Array>}
|
|
7
7
|
*/
|
|
8
|
-
static sendCommand(messageByteArray: Uint8Array): Promise<Uint8Array
|
|
8
|
+
static sendCommand(messageByteArray: Uint8Array): Promise<Uint8Array>;
|
|
9
9
|
/**
|
|
10
10
|
* @param {Uint8Array} messageByteArray
|
|
11
|
-
* @returns {Promise<Uint8Array>
|
|
11
|
+
* @returns {Promise<Uint8Array>}
|
|
12
12
|
*/
|
|
13
|
-
static heartBeat(messageByteArray: Uint8Array): Promise<Uint8Array
|
|
13
|
+
static heartBeat(messageByteArray: Uint8Array): Promise<Uint8Array>;
|
|
14
14
|
Receiver(): void;
|
|
15
15
|
}
|
|
16
16
|
import { InMemoryConnectionData } from '../../utils/connectionData/InMemoryConnectionData.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Details for activating a type with constructor arguments
|
|
3
|
+
*/
|
|
4
|
+
export class Activator {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new instance of a type
|
|
7
|
+
* @param {Function} Type - The constructor function/class
|
|
8
|
+
* @param {any[] | any} args - The arguments to pass to the constructor
|
|
9
|
+
* @returns {any} The new instance
|
|
10
|
+
*/
|
|
11
|
+
static createInstance(Type: Function, args: any[] | any): any;
|
|
12
|
+
}
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
export class ActivatorDetails {
|
|
5
5
|
/**
|
|
6
6
|
* @param {Function} type - The constructor function/class
|
|
7
|
-
* @param {any[]} [args] - Arguments to pass to constructor
|
|
7
|
+
* @param {any[]|any} [args] - Arguments to pass to constructor (array or single value)
|
|
8
8
|
*/
|
|
9
|
-
constructor(type: Function, args?: any[]);
|
|
10
|
-
type
|
|
9
|
+
constructor(type: Function, args?: any[] | any);
|
|
10
|
+
/** @type {Function} */
|
|
11
|
+
Type: Function;
|
|
12
|
+
/** @type {any[]} */
|
|
11
13
|
arguments: any[];
|
|
12
14
|
}
|
|
@@ -65,6 +65,13 @@ export class ConfigRuntimeFactory {
|
|
|
65
65
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
66
66
|
*/
|
|
67
67
|
nodejs(configName?: string): RuntimeContext;
|
|
68
|
+
/**
|
|
69
|
+
* Creates RuntimeContext instance to interact with the Php runtime.
|
|
70
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
71
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Php runtime
|
|
72
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
73
|
+
*/
|
|
74
|
+
php(configName?: string): RuntimeContext;
|
|
68
75
|
/**
|
|
69
76
|
* Creates RuntimeContext instance to interact with the Python 2.7 runtime.
|
|
70
77
|
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export type RuntimeNameType = import("../types.d.ts").RuntimeName;
|
|
2
2
|
export type IConnectionData = import("../utils/connectionData/IConnectionData.js").IConnectionData;
|
|
3
|
-
/**
|
|
4
|
-
* @typedef {import('../types.d.ts').RuntimeName} RuntimeNameType
|
|
5
|
-
* @typedef {import('../utils/connectionData/IConnectionData.js').IConnectionData} IConnectionData
|
|
6
|
-
*/
|
|
7
3
|
/**
|
|
8
4
|
* InvocationContext is a class that represents a context for invoking commands.
|
|
9
5
|
* It implements several interfaces for different types of interactions.
|
|
@@ -12,6 +8,7 @@ export type IConnectionData = import("../utils/connectionData/IConnectionData.js
|
|
|
12
8
|
* @class
|
|
13
9
|
*/
|
|
14
10
|
export class InvocationContext {
|
|
11
|
+
static _invocationContexts: Map<any, any>;
|
|
15
12
|
/**
|
|
16
13
|
*
|
|
17
14
|
* @param {RuntimeNameType} runtimeName
|
|
@@ -20,22 +17,21 @@ export class InvocationContext {
|
|
|
20
17
|
* @param {boolean} isExecuted
|
|
21
18
|
*/
|
|
22
19
|
constructor(runtimeName: RuntimeNameType, connectionData: IConnectionData, command: Command, isExecuted?: boolean);
|
|
20
|
+
/**
|
|
21
|
+
* @returns {string} guid of this InvocationContext
|
|
22
|
+
*/
|
|
23
|
+
getGuid(): string;
|
|
23
24
|
/**
|
|
24
25
|
* @returns {Command|null}
|
|
25
26
|
*/
|
|
26
|
-
|
|
27
|
+
getCurrentCommand(): Command | null;
|
|
27
28
|
/**
|
|
28
29
|
* Executes the current command.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Commands are becoming nested through each invocation of methods on Invocation Context.
|
|
32
|
-
* Each invocation triggers the creation of new Invocation Context instance wrapping the current command with new parent command valid for invoked method.
|
|
33
|
-
* Developer can decide on any moment of the materialization for the context taking full control of the chunks of the expression being transferred and processed on target runtime.
|
|
34
|
-
* @returns {Promise<InvocationContext> | InvocationContext} the InvocationContext after executing the command.
|
|
35
|
-
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
30
|
+
* Returns the InvocationContext after executing the command.
|
|
31
|
+
* @returns {Promise<InvocationContext>}
|
|
36
32
|
* @method
|
|
37
33
|
*/
|
|
38
|
-
execute(): Promise<InvocationContext
|
|
34
|
+
execute(): Promise<InvocationContext>;
|
|
39
35
|
/**
|
|
40
36
|
* Invokes a static method on the target runtime.
|
|
41
37
|
* @param {string} methodName - The name of the method to invoke.
|
|
@@ -64,9 +60,10 @@ export class InvocationContext {
|
|
|
64
60
|
setStaticField(fieldName: string, value: any): InvocationContext;
|
|
65
61
|
/**
|
|
66
62
|
* Creates a new instance of a class in the target runtime.
|
|
63
|
+
* Adds the newly created context to the static invocation contexts map and
|
|
64
|
+
* includes the context GUID as the first argument of CreateClassInstance command payload.
|
|
67
65
|
* @param {...any} args - The arguments to pass to the class constructor
|
|
68
66
|
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to create the instance.
|
|
69
|
-
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/creating-instance-and-calling-instance-methods)
|
|
70
67
|
* @method
|
|
71
68
|
*/
|
|
72
69
|
createInstance(...args: any[]): InvocationContext;
|
|
@@ -196,11 +193,11 @@ export class InvocationContext {
|
|
|
196
193
|
getInstanceMethodAsDelegate(methodName: string, ...args: any[]): InvocationContext;
|
|
197
194
|
/**
|
|
198
195
|
* Retrieves the type of the object from the target runtime.
|
|
199
|
-
* @returns {Promise<string>
|
|
196
|
+
* @returns {Promise<string>} The type of the object.
|
|
200
197
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/type-handling/getting-object-type)
|
|
201
198
|
* @method
|
|
202
199
|
*/
|
|
203
|
-
getResultType(): Promise<string
|
|
200
|
+
getResultType(): Promise<string>;
|
|
204
201
|
/**
|
|
205
202
|
* Retrieves the name of the runtime where the command is executed.
|
|
206
203
|
* @returns {number} The name of the runtime.
|
|
@@ -210,6 +207,7 @@ export class InvocationContext {
|
|
|
210
207
|
getRuntimeName(): number;
|
|
211
208
|
/**
|
|
212
209
|
* Retrieves an array from the target runtime.
|
|
210
|
+
* @async
|
|
213
211
|
* @returns {Promise<any[]>}
|
|
214
212
|
* @method
|
|
215
213
|
*/
|
|
@@ -222,12 +220,12 @@ export class InvocationContext {
|
|
|
222
220
|
* @method
|
|
223
221
|
*/
|
|
224
222
|
getValue(): unknown;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
223
|
+
/**
|
|
224
|
+
* Async iterator for InvocationContext arrays
|
|
225
|
+
* Use: for await (const item of invocationContext) { ... }
|
|
226
|
+
* @returns {AsyncGenerator<InvocationContext, void, unknown>}
|
|
227
|
+
*/
|
|
228
|
+
[Symbol.asyncIterator](): AsyncGenerator<InvocationContext, void, unknown>;
|
|
231
229
|
#private;
|
|
232
230
|
}
|
|
233
231
|
import { Command } from '../utils/Command.js';
|
|
@@ -77,7 +77,8 @@ import { WsConnectionData } from '../utils/connectionData/WsConnectionData.js';
|
|
|
77
77
|
import { CommandSerializer } from '../core/protocol/CommandSerializer.js';
|
|
78
78
|
import { CommandDeserializer } from '../core/protocol/CommandDeserializer.js';
|
|
79
79
|
import { ConfigPriority } from './configuration/ConfigPriority.js';
|
|
80
|
+
import { ComplexTypeResolver } from './tools/ComplexTypeResolver.js';
|
|
80
81
|
import { RuntimeFactory } from './RuntimeFactory.js';
|
|
81
82
|
import { ConfigRuntimeFactory } from './ConfigRuntimeFactory.js';
|
|
82
83
|
import { RuntimeContext } from './RuntimeContext.js';
|
|
83
|
-
export { TcpConnectionData, WsConnectionData, CommandSerializer, CommandDeserializer, ConfigPriority };
|
|
84
|
+
export { TcpConnectionData, WsConnectionData, CommandSerializer, CommandDeserializer, ConfigPriority, ComplexTypeResolver };
|
|
@@ -40,20 +40,21 @@ export class RuntimeContext {
|
|
|
40
40
|
* Each invocation triggers the creation of a new RuntimeContext instance wrapping the current command with a new parent command.
|
|
41
41
|
* The developer can decide at any moment of the materialization for the context, taking full control of the chunks of the expression being transferred and processed on the target runtime.
|
|
42
42
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
43
|
+
* @returns {Promise<void>}
|
|
43
44
|
* @method
|
|
44
45
|
*/
|
|
45
|
-
execute(): void
|
|
46
|
+
execute(): Promise<void>;
|
|
46
47
|
/**
|
|
47
48
|
* Adds a reference to a library. Javonet allows you to reference and use modules or packages written in various languages.
|
|
48
49
|
* This method allows you to use any library from all supported technologies. The necessary libraries need to be referenced.
|
|
49
50
|
* The argument is a relative or full path to the library. If the library has dependencies on other libraries, the latter needs to be added first.
|
|
50
51
|
* After referencing the library, any objects stored in this package can be used. Use static classes, create instances, call methods, use fields and properties, and much more.
|
|
51
52
|
* @param {string} libraryPath - The relative or full path to the library.
|
|
52
|
-
* @returns {RuntimeContext} RuntimeContext instance.
|
|
53
|
+
* @returns {Promise<RuntimeContext>} RuntimeContext instance.
|
|
53
54
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/adding-references-to-libraries)
|
|
54
55
|
* @method
|
|
55
56
|
*/
|
|
56
|
-
loadLibrary(libraryPath: string): RuntimeContext
|
|
57
|
+
loadLibrary(libraryPath: string): Promise<RuntimeContext>;
|
|
57
58
|
/**
|
|
58
59
|
* Retrieves a reference to a specific type. The type can be a class, interface or enum. The type can be retrieved from any referenced library.
|
|
59
60
|
* @param {string} typeName - The full name of the type.
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/configuration/ConfigSourceResolver.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
export class ConfigSourceResolver {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @param {import('./ConfigPriority.js').ConfigPriority} priority
|
|
4
|
+
* @param {string | any} configSource
|
|
5
|
+
*/
|
|
6
|
+
static addConfigs(priority: any, configSource: string | any): void;
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} configName
|
|
9
|
+
* @returns {*}
|
|
10
|
+
*/
|
|
11
|
+
static getConfig(configName: string): any;
|
|
4
12
|
static clearConfigs(): void;
|
|
5
|
-
|
|
6
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} configSource
|
|
15
|
+
* @returns {string}
|
|
16
|
+
*/
|
|
17
|
+
static _getConfigSourceAsString(configSource: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* @param {import('./ConfigPriority.js').ConfigPriority} priority
|
|
20
|
+
* @param {string} configString
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static _parseConfigsAndAddToCollection(priority: any, configString: string): void;
|
|
7
24
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export type RuntimeName = import("../../types.d.ts").RuntimeName;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef {import('../../types.d.ts').RuntimeName} RuntimeName
|
|
4
|
-
*/
|
|
5
2
|
export class ComplexTypeResolver {
|
|
6
3
|
/**
|
|
7
4
|
* Resolve type from string name and optional module
|
|
@@ -10,6 +7,19 @@ export class ComplexTypeResolver {
|
|
|
10
7
|
* @returns {Function} The resolved type/constructor function
|
|
11
8
|
*/
|
|
12
9
|
static resolveType(typeName: string, moduleName?: string): Function;
|
|
10
|
+
/**
|
|
11
|
+
* Attempts to extract the underlying element type from an array type string
|
|
12
|
+
* @param {string} type - The type string to parse (e.g., "MyType[]")
|
|
13
|
+
* @returns {string | null} Object indicating success and the element type
|
|
14
|
+
* @throws {Error} If the array element type is a primitive type
|
|
15
|
+
*/
|
|
16
|
+
static tryGetUnderlyingArrayType(type: string): string | null;
|
|
17
|
+
/**
|
|
18
|
+
* @param {RuntimeName} runtimeName
|
|
19
|
+
* @param {string} resultType
|
|
20
|
+
* @returns {any}
|
|
21
|
+
*/
|
|
22
|
+
static tryGetTypeParsingFunction(runtimeName: RuntimeName, resultType: string): any;
|
|
13
23
|
/**
|
|
14
24
|
* Register a custom type mapping
|
|
15
25
|
* @param {string} resultType - The type name from the target runtime
|
|
@@ -20,9 +30,15 @@ export class ComplexTypeResolver {
|
|
|
20
30
|
/**
|
|
21
31
|
* Convert InvocationContext result to appropriate JavaScript type
|
|
22
32
|
* @param {InvocationContext} ic - The invocation context
|
|
23
|
-
* @returns {Promise<any>
|
|
33
|
+
* @returns {Promise<any>} The converted result
|
|
34
|
+
*/
|
|
35
|
+
convertResult(ic: InvocationContext): Promise<any>;
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} resultType
|
|
38
|
+
* @returns {ActivatorDetails | null}
|
|
24
39
|
*/
|
|
25
|
-
|
|
40
|
+
tryGetValueFromTypeMap(resultType: string): ActivatorDetails | null;
|
|
26
41
|
#private;
|
|
27
42
|
}
|
|
28
43
|
import { InvocationContext } from '../InvocationContext.js';
|
|
44
|
+
import { ActivatorDetails } from '../ActivatorDetails.js';
|
|
@@ -71,7 +71,9 @@ const CommandType = (
|
|
|
71
71
|
GetAsyncOperationResult: 44,
|
|
72
72
|
AsKwargs: 45,
|
|
73
73
|
GetResultType: 46,
|
|
74
|
-
GetGlobalField: 47
|
|
74
|
+
GetGlobalField: 47,
|
|
75
|
+
RegisterForUpdate: 48,
|
|
76
|
+
ValueForUpdate: 49
|
|
75
77
|
}
|
|
76
78
|
);
|
|
77
79
|
// Annotate the CommonJS export names for ESM import in node:
|