Skip to main content

Introduction

What is Enactor Script?

Enactor Script is a lightweight, embeddable Java interpreter that lets you execute standard Java code dynamically at runtime. It supports full Java syntax along with scripting conveniences like optional typing, method closures, and simplified commands.

Because it's lightweight and written entirely in Java, Enactor Script can be easily embedded in Java applications to provide scripting and runtime extensibility.

You can call it from your code to evaluate expressions, run methods, or customize behavior on the fly. Alternatively, it can be used as a standalone script engine to interact with Java objects and APIs dynamically.

Since it runs in the same JVM as your application, you can pass live objects into Enactor Scripts and receive modified results - enabling powerful integration for configuration, automation, rapid prototyping, testing, and interactive debugging.

In essence, Enactor Script brings dynamic Java execution and flexible scripting into a single, embeddable tool for enhancing and extending Java applications.

Enactor Script is built on the BeanShell scripting engine, which provides the dynamic Java interpretation described above.

Why Enactor Script?

Enactor Script exists so that runtime environments such as Android and iOS do not need to be recompiled every time application logic changes. Rather than shipping a new native build, these platforms can simply run the updated Enactor Script instead.

Follow more details here.