- npm
- dll
- gem
- perl package
- python package
- jar
- C#
- Javascript
- Groovy
- Ruby
- Perl
- Python
- GoLang
Javonet allows you to interact with any public class, methods, fields and other interface members without writing web services or creating gRPC protobuf. Regardless if you integrate same or different technology modules and services.
Write one code calling public interface methods and switch between single process or remote invocation with simple change in configuration file. Regardless of technology it will work so you can build single app or service with different tech modules.
Javonet bridges runtimes in-memory or remotely.
Runtime running your
application
Runtimes we can run in
your application
You will be able to load
and interact with them
Curious how it works? Try it out .
import com.javonet.sdk.*;
public class SampleProgram {
private static final String resourcesDirectory = ".";
public static void main(String []args) {
// use activate only once in your app
Javonet.activate("your-license-key");
// create called runtime context
RuntimeContext calledRuntime = Javonet.inMemory().python();
// set up variables
// path to directory with .py files
String libraryPath = resourcesDirectory;
String className = "TestClass.TestClass";
// load custom library
calledRuntime.loadLibrary(libraryPath);
// get type from runtime
InvocationContext calledRuntimeType = calledRuntime.getType(className).execute();
// invoke type's method
InvocationContext response = calledRuntimeType.invokeStaticMethod("multiply_by_two", 25).execute();
// get value from response
int result = (int) response.getValue();
// write result to console
System.out.println(result);
}
}
class TestClass:
def __init__(self, public_value, private_value):
self.public_value = public_value
self.private_value = private_value
@staticmethod
def multiply_by_two(a):
return 2 * a
def multiply_two_numbers(self, a, b):
return a * b
Javonet calls are natively passed between runtimes omitting HTTP stack and managed code layers making them lightning fast. For remote calls its 70% less than WebServices meaning less compute time in cloud and lower carbon footprint.
Our team waits to answer your questions, do custom demo or prepare dedicated code samples.