M
mike
Hi,
I have a class called MyPlugin that extends Plugin ( Eclipse run-time
class instantiated by the framework).
In MyPlugin I call another class, MyProvider, that provides a
singleton e.g. I get an instance using the following code:
MyProvider.getInstance(). This is what MyPlugin class uses to get an
instance of MyProvider. I don't see how I can get a looser coupling
since the MyPlugin constructor is called form the eclipse framework.
It is not possible to get an instance of MyProvider into the MyPlugin
constructor.
Have I missed something? Is there a way around this?
br,
//mikael
I have a class called MyPlugin that extends Plugin ( Eclipse run-time
class instantiated by the framework).
In MyPlugin I call another class, MyProvider, that provides a
singleton e.g. I get an instance using the following code:
MyProvider.getInstance(). This is what MyPlugin class uses to get an
instance of MyProvider. I don't see how I can get a looser coupling
since the MyPlugin constructor is called form the eclipse framework.
It is not possible to get an instance of MyProvider into the MyPlugin
constructor.
Have I missed something? Is there a way around this?
br,
//mikael