net.razorvine.pyro.FlameBuiltin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pyrolite Show documentation
Show all versions of pyrolite Show documentation
This library allows your Java program to interface very easily with the Python world. It uses the Pyro protocol to call methods on remote objects. (See https://pyro5.readthedocs.io/).
Pyrolite only implements part of the client side Pyro library, hence its name 'lite'... So if you don't need Pyro's full feature set, Pyrolite may be a good choice to connect java or .NET and python.
Version 5.0 changes: support Pyro5 wire protocol. Dropped support of Pyro4 (stick to version 4.xx for that).
package net.razorvine.pyro;
import java.io.IOException;
import java.util.HashMap;
import net.razorvine.pickle.PickleException;
/**
* Flame-Wrapper for a builtin function.
*
* @author Irmen de Jong ([email protected])
*/
public class FlameBuiltin {
private PyroProxy flameserver;
private String builtin;
/**
* called by the Unpickler to restore state
*/
public void __setstate__(HashMap, ?> args) throws IOException {
flameserver=(PyroProxy) args.get("flameserver");
builtin=(String) args.get("builtin");
}
public Object call(Object... arguments) throws PickleException, PyroException, IOException {
return flameserver.call("invokeBuiltin", builtin, arguments, new HashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy