I would like to retrieve a singleton from an extension through the
<createExecutableExtension> method and i am not sure it is possible.
When i try to use a singleton as my extension point "class" attribute,
calling <createExecutableExtension("class")> on my extension point returns
an exception because my constructor is private.
Is there a way to retrieve a singleton ? Or should I do it manually
(retrieving the class name and calling my "getInstance()" static method ?),
but then there might be a classloader problem because the class is in
another bundle.
Or should I make the constructor public, if subsequent calls to
createExecutableExtension on a same extension return the same instance.
Any help would be appreciated.
Thank you.
Christophe.