You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2011/08/26 23:55:29 UTC

[jira] [Commented] (MYFACES-2590) Web Container injection support should be provided for additional lifecycle artifacts (not just managed beans)

    [ https://issues.apache.org/jira/browse/MYFACES-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092080#comment-13092080 ] 

Gerhard Petracek commented on MYFACES-2590:
-------------------------------------------

some parts are already covered by codi and some others aren't mentioned here but users see use-cases for injection in ExceptionHandler and UIComponent (see e.g. http://goo.gl/lYbaZ)

however, since @Inject is specified in jsr330 it's imo more difficult than just providing an integration for cdi.

> Web Container injection support should be provided for additional lifecycle artifacts (not just managed beans)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2590
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2590
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-314
>         Environment: ALL
>            Reporter: Lincoln Baxter III
>
> JSF implementations should treat the following framework components as JEE
> components, and pass them through the default WebInjectionProvider.inject()
> method part of any instantiation process. E.g: Whether or not the framework is
> instantiating the object for it's use, or the user is asking the framework for a
> new instance.
> The benefit: This means that any container provided injection points would
> automatically be available in the following artifacts:
>     * ManagedBean
>     * PhaseListener
>     * SystemEventListener
>     * Converter
>     * Validator
>     * ... more?
> For extension writers:
> Support for native container-injection for all artifacts defined in
> section 11.4.6 of the JSR-314 spec.
> ■ ActionListener
> ■ ApplicationFactory
> ■ FacesContextFactory
> ■ LifecycleFactory
> ■ NavigationHandler
> ■ PropertyResolver
> ■ RenderKit
> ■ RenderKitFactory
> ■ ResourceHandler
> ■ StateManager
> ■ VariableResolver
> ■ ViewHandler
> There is a related SPEC issue, Mojarra enhancement, and GlassFish bug also involved in getting this
> standardized across the board:
> https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=763
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=11655
> https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1578

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira