All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.server.plugin.python.CallbackAdapter Maven / Gradle / Ivy

The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.server.plugin.python;

import io.deephaven.plugin.Registration.Callback;
import io.deephaven.plugin.js.JsPlugin;
import org.jpy.PyObject;

class CallbackAdapter {

    private final Callback callback;

    public CallbackAdapter(Callback callback) {
        this.callback = callback;
    }

    @SuppressWarnings("unused")
    public void registerObjectType(String name, PyObject objectTypeAdapter) {
        callback.register(new ObjectTypeAdapter(name, objectTypeAdapter));
    }

    @SuppressWarnings("unused")
    public void registerJsPlugin(JsPlugin jsPlugin) {
        callback.register(jsPlugin);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy