Death to Dependencies
Posted by Mark at April 17, 2005 09:45 AM
java.net: Breaking the Last Dependency
Elisabeth Freeman and Eric Freeman demonstrate a technique to remove hard-coded dependencies between classes. By loading class types from a properties file they create a simple plugin architecture that allows core code to refer to classes at runtime, without explicit knowledge of their type. This approach can break compile time checks (you store class types in a text file, outside of the scope of the compiler) but that loose type checking at compile time allows for flexible connections at runtime.
Trackbacks
Trackback for this post: http://www.culturekitchen.com/cgi-bin/movabletype/mt-tb.cgi/2894