Hello all!

 

I have a memory of someone thinking it would be a good idea not to have
the MDR instantiated by default from the Model subsystem. I think I have
now understood how to solve this and the solution is not as complicated
as I thought. I have identified the following changes:

* MDR to be instantiated in the application subsystem (probably
org.argouml.application.Main) and fed to the Model subsystem.

* As a consequence of this, the ArgoEclipse application will also have
to instantiate it.

* All test cases that actually use the model will have to instantiate it
(except those using the mock model).

* For extra credit, we could throw a special NotInitializedError when
any of the access methods are called without the Model subsystem being
initialized properly. For the time being they will most likely throw an
NullPointerException.

 

Have I missed something important that will complicate this later? Is
this worth doing now?

 

            /Linus

 

************************************************

Linus Tolke

[EMAIL PROTECTED]   [EMAIL PROTECTED]   [EMAIL PROTECTED]

ArgoUML <http://argouml.tigris.org/> 

************************************************

 

Reply via email to