I focus on BeanShell because it is widely known and extends Java syntax to make the examples easier to understand. You could adopt this article’s approach to any object-oriented scripting language ...