ocpsoft/rewrite — pull request #35 by chkal (2012-04-27 05:36:11+00:00)
Title: Type-based EL expression building

Hey Lincoln,

I created the first code for the dynamic EL expression building stuff we need for the annotations. This pull requests contains:

* An abstraction layer `Expression` which hides all the dirty details from the `El` class
* A SPI `BeanNameResolver`
* A `TypeBasedExpression` that implements the lookup using the new SPI
* A default implementation of the SPI that allows to use an annotation called `@ELBeanName` on a type to tell Rewrite about the EL name. This should be some kind of fallback. But of cause implementations for CDI, Spring and JSF2 will follow.
* A test for `TypeBasedExpression` that uses the default SPI implementation

I'm looking forward to your feedback. I'm not sure all the classes have nice names. So rename them if you find better ones.