[ http://issues.apache.org/struts/browse/SHALE-197?page=comments#action_37624 ]
Craig McClanahan commented on SHALE-197: ---------------------------------------- How quickly we can get spoiled :-) I've got the runtime code that implements this suggestion completed, but need to build some unit tests for it before it's committed. Basically, I'm adding a @FacesPhaseListener annotation on a class to declare that any instance of that class is interested in being a phase listener, plus @BeforePhase and @AfterPhase methods to specify the actual methods to be invoked. At webapp startup time, any class marked with @FacesPhaseListener will cause an instance to be created, and then a PhaseListener registered with the JSF implementation (via an adapter class if PhaseListener is not implemented directly). > Allow PhaseListeners to be defined with Annotations > --------------------------------------------------- > > Key: SHALE-197 > URL: http://issues.apache.org/struts/browse/SHALE-197 > Project: Shale > Type: New Feature > Components: Tiger > Versions: 1.0.3 > Reporter: Adam Brod > Assignee: Craig McClanahan > > Now that I can configure components and managed beans with annotations, I'm > hooked. It would be great if we could also configure PhaseListeners with > annotations. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
