You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have what is a relatively simple/standard setup; a plugin design pattern.
I can create the plugin in the new JCL classloader and get a reference to it with no problems. I create the reference to the interface using:
myPlugin = JclUtils.cast(...)
Now any method that I pass in standard JDK objects; no problems whatsoever. Everything is happy. However the problem is when i am attempting to get at a function that is passing a custom interface to it.
So my main callable interface is:
public IJobResult handle( IJobMessage job )
I create an instance of IJobMessage in the main code and when i attempt to call myPlugin.handle() it keeps
I have what is a relatively simple/standard setup; a plugin design pattern.
I can create the plugin in the new JCL classloader and get a reference to it with no problems. I create the reference to the interface using:
Now any method that I pass in standard JDK objects; no problems whatsoever. Everything is happy. However the problem is when i am attempting to get at a function that is passing a custom interface to it.
So my main callable interface is:
I create an instance of IJobMessage in the main code and when i attempt to call myPlugin.handle() it keeps
with no such method. I have tried to JclUtils.cast() on the object that implements IJobMessage but that doesn't work either.
So the question is, how do I create an object in the base code and pass that to my loaded plugin loaded by JCL?
Thank you for assistance you can lend
The text was updated successfully, but these errors were encountered: