Native vs. private constructor and static methods [message #1064484] |
Wed, 19 June 2013 09:12  |
Eclipse User |
|
|
|
Hi!
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?
Best regards,
Alex.
[Updated on: Wed, 19 June 2013 09:13] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09075 seconds