Mark Bednarczyk's blog

Java Scripting language

Script script = new Script();
Namespace ns = script.getNamespace();

ns.addBean("var1", 10);
ns.addBean("var2", 20);

int result = script.exec("(var1 + var2) > 10 ? var1 * var2 : var2 - var1");
System.out.println(result);
public class TestBean {
	private boolean value;

	public boolean getValue() {
		return value;
	}

	public void setValue(boolean val) {
		this.value = val;
	}
}

// And a test expression
Script script = new Script();
Namespace ns = script.getNamespace();

ns.addBean("var1", new TestBean());
ns.addBean("var2", new TestBean());

String result = script.exec("var1.value ^ var2.value ?  "its true": "definitely false");
System.out.println(result);

Formatting of packets

JFieldField.PriorityField.PriorityJFormatter.Detail

Website performance

1.3.r1315 (rc1) looks good.

1.3.0 production is almost ready

Syndicate content