Whether you are writing class names into a properties file, or into a java file, it's still programming. It's just that doing it in a property file loses all your edit-time and compile-time checks.
If implementation classes for some interfaces/factories need to be modified after delivery, I would suggest using a Registry (not windows registry) based approach, allowing plugins to modify the set of implementation classes at runtime.
Or use a jar-scanner approach as suggested earlier in these comments.
In general, this looks like extra pain for no real gain. |