JLink`
JLink`

ImplementJavaInterface

ImplementJavaInterface[interfaces,mappings]

uses the Dynamic Proxy facility of Java to create a new Java class and return an object of that class that implements the named interface or list of interfaces by calling back into the Wolfram Language. In short, it lets you create a Java object that implements a given Java interface entirely in Wolfram Language code.

Details and Options

  • To use ImplementJavaInterface, you first need to load J/Link using Needs["JLink`"].
  • mappings is a list of rules that specify the name of the Java method and the name of the method that will be called in the Wolfram Language to implement the body of that method, as in "intfMeth1"->"mathHandlerMethod1". The arguments passed to the Wolfram Language method will be exactly the arguments originally passed to the Java method.
Wolfram Research (2007), ImplementJavaInterface, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html.

Text

Wolfram Research (2007), ImplementJavaInterface, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html.

CMS

Wolfram Language. 2007. "ImplementJavaInterface." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html.

APA

Wolfram Language. (2007). ImplementJavaInterface. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html

BibTeX

@misc{reference.wolfram_2024_implementjavainterface, author="Wolfram Research", title="{ImplementJavaInterface}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_implementjavainterface, organization={Wolfram Research}, title={ImplementJavaInterface}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/ImplementJavaInterface.html}, note=[Accessed: 22-December-2024 ]}