Revision: 635
http://stripes.svn.sourceforge.net/stripes/?rev=635&view=rev
Author: bengunter
Date: 2007-11-21 12:59:19 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
STS-186: Allow @Before and @After to specify that event(s) that they apply to.
Corrected the examples in javadoc comments. (Added stages = ...)
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/action/After.java
trunk/stripes/src/net/sourceforge/stripes/action/Before.java
Modified: trunk/stripes/src/net/sourceforge/stripes/action/After.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/After.java 2007-11-20
16:42:30 UTC (rev 634)
+++ trunk/stripes/src/net/sourceforge/stripes/action/After.java 2007-11-21
20:59:19 UTC (rev 635)
@@ -43,13 +43,13 @@
* }
*
* // Runs after binding and validation have completed
- * [EMAIL PROTECTED] @After(LifecycleStage.BindingAndValidation)}
+ * [EMAIL PROTECTED] @After(stages = LifecycleStage.BindingAndValidation)}
* public void doPostValidationStuff() {
* ...
* }
*
* // Runs twice, once after each validation-related stage
- * [EMAIL PROTECTED] @}After({LifecycleStage.BindingAndValidation,
LifecycleStage.CustomValidation})
+ * [EMAIL PROTECTED] @}After(stages = {LifecycleStage.BindingAndValidation,
LifecycleStage.CustomValidation})
* public void doMorePostValidationStuff() {
* ...
* }
Modified: trunk/stripes/src/net/sourceforge/stripes/action/Before.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/Before.java
2007-11-20 16:42:30 UTC (rev 634)
+++ trunk/stripes/src/net/sourceforge/stripes/action/Before.java
2007-11-21 20:59:19 UTC (rev 635)
@@ -45,13 +45,13 @@
* }
*
* // Runs before binding and validation are executed
- * [EMAIL PROTECTED] @Before(LifecycleStage.BindingAndValidation)}
+ * [EMAIL PROTECTED] @Before(stages = LifecycleStage.BindingAndValidation)}
* public void doPreValidationStuff() {
* ...
* }
*
* // Runs twice, once before each validation-related stage
- * [EMAIL PROTECTED] @}Before({LifecycleStage.BindingAndValidation,
LifecycleStage.CustomValidation})
+ * [EMAIL PROTECTED] @}Before(stages = {LifecycleStage.BindingAndValidation,
LifecycleStage.CustomValidation})
* public void doMorePreValidationStuff() {
* ...
* }
@@ -61,7 +61,8 @@
* @see net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor
* @author Jeppe Cramon
* @since Stripes 1.3
- */@Retention(RetentionPolicy.RUNTIME)
+ */
[EMAIL PROTECTED](RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Inherited
@Documented
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development