+1<br><br>Has an issue report been created for this yet?<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 9:00 AM, Pete Muir <span dir="ltr"><<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
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].<br>
<br>
I propose this change to the MR so it can be used in the EE6 platform, the target for JSR-299.<br>
<br>
Changes to spec required<br>
-----------------------------------<br>
<br>
* Add ExpressionFactory to the list of classes required to support the decorator pattern<br>
* Add ExpressionFactoryWrapper class to support the decorator pattern<br>
<br>
Changes to implementation required<br>
--------------------------------------------------<br>
<br>
* Add support for exposing and using wrapped ExpressionFactory<br>
<br>
Impact on users and frameworks<br>
--------------------------------------------<br>
<br>
Users can now:<br>
<br>
* call application.setExpressionFactory(new WebBeansExpressionFactory(application.getExpressionFactory());<br>
* configure a wrapping expression factory in faces-config.xml<br>
<application><br>
<expressionFactory>org.jboss.webbeans.el.WebBeansExpressionFactory</expressionFactory><br>
</application><br>
<br>
[1] Currently this is possible by wrapping the application via the application factory and overriding the getExpressionFactory method<br>
</blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br>