Monday, February 16, 2009

Here is an idea for an alternative for the Voldemort shell. I added one Class and use the Scala interactive shell.Below is an example of how you can use it to manipulate Java and Protobuf objects (of course it can be applied to other stuff), do scripting/grandfathering and enjoy the interactive shell.

Before we go on, you can use this shell without protobuf or scala, they are in the example only for proof of concept.For the example I created two 'person' classes, one POJO and the other Java generated form protobuf.The example simulates put/get/copy/grandfathering of a list of objects.This is a copy from the shell: