Author: hlship
Date: Mon Apr 19 13:47:13 2010
New Revision: 935565
URL: http://svn.apache.org/viewvc?rev=935565&view=rev
Log:
Clearly identify that the default attribute name for @SessionAttribute matches
the field name.
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/SessionAttribute.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/SessionAttribute.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/SessionAttribute.java?rev=935565&r1=935564&r2=935565&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/SessionAttribute.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/SessionAttribute.java
Mon Apr 19 13:47:13 2010
@@ -1,4 +1,4 @@
-// Copyright 2007, 2009 The Apache Software Foundation
+// Copyright 2007, 2009, 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -22,11 +22,12 @@ import java.lang.annotation.Target;
import static org.apache.tapestry5.ioc.annotations.AnnotationUseContext.*;
import org.apache.tapestry5.ioc.annotations.UseWith;
+import org.apache.tapestry5.services.Session;
/**
* Used to map a property of a page or component to value stored in session.
*
- * @since 5.2.0.0
+ * @since 5.2.0
*/
@Target(FIELD)
@Documented
@@ -36,7 +37,8 @@ public @interface SessionAttribute
{
/**
- * Name of a Session-Attribute.
+ * Name of a the {...@link Session} attribute to which the field will be
mapped; if not specified,
+ * defaults to the name of the field.
*/
String value() default "";
}
\ No newline at end of file