Hi Linus
You confused me when you said you want MDR to be instantiated in the
application subsystem. When you say MDR I assume you are referring to
the MDR classes themselves.
I think what you mean is you want our Model implementation to be
instantiated in the application subsystem (no matter which we use).
I see a parallel here with how a driver class is typically specified
when writing JDBC.
It makes sense to me to do something like this
try {
String impl = "org.argouml.model.mdr.MDRModelImplementation";
Model.register(Class.forName(impl).newInstance());
} .....
However the actual string of the class name should be in some
properties file (overridden by a JVM argument) rather than hard coded
and we should have no references (including imports) to a specific
model implementation. We should be able to a different implementation
without any code changes.
Bob.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]