I´m currently evaluating possibilities of mixing delphi and java together.
The idea is as followed :
Delphi Client shows and display GUI (in legacy software) and can interact with a nonvisual java plugin. The Javaplugin is resposible to communicate to a REST-Server.
I´ve written a simple Host in Delphi which loads a nonvisual plugin from java.
[Code - Delphi]
FModuleManager := THYModuleManager.Create(nil);
FModuleManager.AutoLoad := False;
FModuleManager.ResolveInterfacesToOwner := True;
FModuleManager.EnforceSecurity := False;
The plugin is not nil and Start\Stop etc seems to work flawless.
Now i want to extend my Java Plugin by adding a crossplattform interface to it as described in https://docs.hydra4.com/Plugins/NonVisualPluginsJava/.
[Code - Java]
public interface ITestInterface extends HYCrossPlatformInterface
and implement it onto my PluginImplementation.
[Delphi - Code]
ITestInterface = interface(IHYCrossPlatformInterface)
function GetText(): string;
When i try to QueryInterface it returns nil. My guess is either I´m missing something or java plugins has to be designed differently. I just dont find the missing clue within the documentation.