[
https://issues.apache.org/jira/browse/EXTCDI-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068378#comment-13068378
]
Gerhard Petracek commented on EXTCDI-208:
-----------------------------------------
it was done that way because you need to inject something in
DefaultErrorViewExceptionHandler which has to dyn. wrap the created
exception-handler. however, we could do that lazily if you noticed a big impact.
> CodiFacesContextWrapper.getExceptionHandler() tries to inject many times
> during one request/response
> ----------------------------------------------------------------------------------------------------
>
> Key: EXTCDI-208
> URL: https://issues.apache.org/jira/browse/EXTCDI-208
> Project: MyFaces CODI
> Issue Type: Improvement
> Affects Versions: 1.0.0
> Environment: codi 1.0.0
> Reporter: Martin Kočí
> Priority: Minor
>
> org.apache.myfaces.extensions.cdi.jsf2.impl.listener.request.CodiFacesContextWrapper.getExceptionHandler()
> tries to inject field always - in every method call.
> ExceptionHandler instance has request scoped lifespan and it cannot change -
> I think is suitable to inject fields only once.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira