User Tools

Site Tools


can_i_use_dci_in_java

This is an old revision of the document!


Can I use DCI in Java?

DCI is about attaching and detaching RoleMethods to objects at runtime. This makes it tricky to implement DCI in any statically typed language, however many of those languages have features to make it look like a type has other member methods than what's defined in its class or structure:

Unfortunately Java has nothing similar to those features, making a true DCI implementation impossible in the current version of the language. There is hope however, both Scala and Qi4j generates Java object code and has a fully working DCI implementation. Check the Existing DCI Implementations page for links.

can_i_use_dci_in_java.1390203698.txt.gz · Last modified: 2014/01/20 07:41 by gazoot