[
https://issues.apache.org/jira/browse/MYFACES-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475588
]
Paul McMahan commented on MYFACES-1246:
---------------------------------------
Dennis, sorry I can see how my comment could be easily misunderstood. Yes I
agree that MyFaces shoiuld support the @PostConstruct and @PreDestroy
annotations with or without a full JEE container. My comments were mainly in
reaction to Mathias' observation that MyFaces should also provide support for
resource injection when running in a JEE container. If you agree with Mathias
and want to tackle JEE resource injection as part of this JIRA then I wanted to
let you know about Geronimo's current level of support for annotations, which
discovers annotations and handles resource injection in servlets, filters, and
listeners but not in managed beans. To add support for resource injection in
managed beans we could take the approach that Mathias recommends where the JEE
container implements an InjectionProvider interface. Geronimo is currently
using MyFaces for JSF 1.2 support so as a Geronimo committer I can work with
you on defining and testing this interface. Hope this makes better sense now.
> JSR-252 Issue #119: implementations running in a JSR-250 container have their
> managed bean methods annotated with @PostConstruct be called after the object
> is instantiated, and after injection is performed, but before the bean is
> placed into scope.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-1246
> URL: https://issues.apache.org/jira/browse/MYFACES-1246
> Project: MyFaces Core
> Issue Type: New Feature
> Components: JSR-252
> Reporter: Stan Silvert
> Assigned To: Dennis Byrne
>
> Specified that implementations running in a JSR-250 compliant container have
> their managed bean methods annotated with @PostConstruct be called after the
> object is instantiated, and after injection is performed, but before the bean
> is placed into scope.
> Specified that methods annotated with @PreDestroy be called when the scope
> for the bean is ending.
> See
> https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=252
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.