Bindgen

Overview

The separate Bindgen project is joist-web’s type-safe alternative to expression languages like UL and OGNL.

Bindgen uses code generation, but is built on top of the JDK6 annotation processor API to provide (in Eclipse) a seamless editing/generation experience. The generated code is kept up to date as soon as “save” is hit.

See Code Generation for more discussion about the different types of code generation.

Also see the Bindgen’s github site for more information.

Approach

Bindgen generates closure-like classes that shadow classes annotated with @Bindable and provide type-safe instances of the Binding interface to allow frameworks to get/set properties’ data.

Sections