User Tools

Site Tools


This is an old revision of the document!

Can I use DCI in Java?

At runtime (program execution), DCI is about attaching and detaching RoleMethods to objects. 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. All is not lost 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.1390208359.txt.gz · Last modified: 2014/01/20 08:59 by gazoot