ADeLa is a scripting
language that allows you to add scripting functionality to your java
You provide simple interfaces for functions you wish to export
to the scripts. Then, you write scripts that use these functions. If used
properly, these scripts can come from untrusted sources.
ADeLa is designed to be
You can embed ADeLa into your application without much effort.
You give the scripts java objects they need to operate on, and
they do so using a well defined, simple to implement
- Integratable. ADeLa scripts operate directly
on java objects. Each class can define how it is accessed from
the script by implementing an interface. Alternatively, you can
give the interpreter another class that handles objects of a
certain class. For example, there is a class to handle native
java string objects. After the script processed java objects, it
can pass them right back to the java program, either by a
callback or simply by returning a value.
- Secure. ADeLa scripts run in a sandbox which
is safe as long as your code doesn't put something dangerous in
the sandbox (i.e., giving the scripts access to the local
filesystem, network, etc.). While you will probably pass java
object handles to the ADeLa scripts, these handles are accessed
by the scripts only in well-defined ways. If you pass the script
an instance of an unknown class, the script will not be able to
operate on it at all. Note: the current version doesn't prevent
DoS attacks. You'll have to run the script in a separate thread
and cancel it after a certain runtime if you wish to catch/expect
DoS attacks to occur. This issue will be addressed in the next
Please visit the project wiki for up
to date information.
(C) 2007, Hans-Christian Esperer. All rights reserved.
$index.php: July 03