|Native vs. private constructor and static methods [message #1064484]
||Wed, 19 June 2013 13:12
| Alex G
Registered: January 2012
I have a Java class "mypackage.MyClass" which is singleton, i.e. a private constructor and a static getInstance() method.
I want to instantiate it in ETL, e.g.
var bla = new Native("mypackage.MyClass");
However I get of course an error due to visibility constraints:
Plug-in "..." was unable to instantiate class "mypackage.MyClass".
It works fine, if I make the constructor public.
Is there a nice solution to work with static objects without making the constructor explicitely public?
[Updated on: Wed, 19 June 2013 13:13]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.16522 seconds