适用于Java 8的JavaBeans ActiveX Bridge? [英] JavaBeans ActiveX Bridge for Java 8?

查看:176
本文介绍了适用于Java 8的JavaBeans ActiveX Bridge?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

曾经有一个 JavaBeans ActiveX Bridge 但是Java 8不再支持AFAIK。

There used to be a JavaBeans ActiveX Bridge but AFAIK this is no longer supported under Java 8.

我想从Excel调用我的JavaBeans,那么Java 8的使用方法是什么?

I want to call my JavaBeans from Excel, so what is the way to go with Java 8?

问题是我在Excel VBA中使用的dll中打包了一些旧版JavaBean。我没有这个bean的源代码。但我仍然想在Java 8/9中使用它。这可能吗?

The problem is I have some legacy JavaBean packaged in a dll that I use from Excel VBA. I don't have the source code to this bean. But I still want to use it with Java 8/9. Is this possible?

推荐答案

我使用 Obba :我用Java解析器读取了Java bean,并为我想要调用的每个Java方法生成了一个VBA包装器方法。包装器使用Obba调用原始Java方法。我创建了一个包含所有包装器方法的VBA类,并使用它从我的VBA代码访问bean。

I solved the problem using Obba: I read the Java bean with a Java parser and generated a VBA wrapper method for each Java method that I want to call. The wrapper calls the original Java method using Obba. I created a VBA class containing all the wrapper methods and use it to access the bean from my VBA code.

Java ActiveX桥将使我免于创建VBA包装类。

The Java ActiveX bridge would have spared me the work of creating the VBA wrapper class.

这篇关于适用于Java 8的JavaBeans ActiveX Bridge?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆