+1
---
Kito D. Mann -- Author, JavaServer Faces in Action
http://twitter.com/kito99 http://twitter.com/jsfcentral
JSF 2 Seminar Sep 1st: http://www.regonline.com/jsf2seminar
JSF Summit Conference Dec 1st-4th in Orlando: http://www.jsfsummit.com
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
+1 203-404-4848 x3
Hi all,
I would like to propose adding ExpressionFactory to the list of classes required to support the decorator pattern. This is to aid integration with CDI (JSR-299) implementations, which are require a callback when EL expression evaluation completes; the necessary hook into EL is via the ExpressionFactory. Adding ExpressionFactory to this list would make implemetors have to jump through fewer hoops to obtain the callback [1].
I propose this change to the MR so it can be used in the EE6 platform, the target for JSR-299.
Changes to spec required
-----------------------------------
* Add ExpressionFactory to the list of classes required to support the decorator pattern
* Add ExpressionFactoryWrapper class to support the decorator pattern
Changes to implementation required
--------------------------------------------------
* Add support for exposing and using wrapped ExpressionFactory
Impact on users and frameworks
--------------------------------------------
Users can now:
* call application.setExpressionFactory(new WebBeansExpressionFactory(application.getExpressionFactory());
* configure a wrapping expression factory in faces-config.xml
<application>
<expressionFactory>org.jboss.webbeans.el.WebBeansExpressionFactory</expressionFactory>
</application>
[1] Currently this is possible by wrapping the application via the application factory and overriding the getExpressionFactory method