You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Adam Brod (JIRA)" <ji...@apache.org> on 2006/06/20 15:26:16 UTC
[jira] Created: (SHALE-197) Allow PhaseListeners to be defined with
Annotations
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
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
[jira] Assigned: (SHALE-197) Allow PhaseListeners to be defined
with Annotations
Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/SHALE-197?page=all ]
Craig McClanahan reassigned SHALE-197:
--------------------------------------
Assign To: Craig McClanahan
> 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
[jira] Commented: (SHALE-197) Allow PhaseListeners to be defined
with Annotations
Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (SHALE-197) Allow PhaseListeners to be defined
with Annotations
Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/SHALE-197?page=all ]
Craig McClanahan resolved SHALE-197:
------------------------------------
Fix Version: 1.0.3
Resolution: Fixed
Fixed in nightly build 20060701 (and in the 1.0.3-SNAPSHOT that will be pushed tonight). Use the new @FacesPhaseListener annotation to declare your listener class (which may, but need not, actually implement PhaseListener). If it does not, you can declare your own handler methods with the @BeforePhase and @AfterPhase annotations -- both of which must mark a public void method that takes a PhaseEvent.
> 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
> Fix For: 1.0.3
>
> 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
[jira] Work started: (SHALE-197) Allow PhaseListeners to be defined
with Annotations
Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/SHALE-197?page=all ]
Work on SHALE-197 started by Craig McClanahan
> 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