|
Scala 2.4.0-final
|
class
BeanProperty
extends
scala.Annotation
with
scala.ScalaObject
This attribute adds a setter and a getter method, following the Java Bean convention (first letter of the property is capitalized) used by popular Java web frameworks. For example:
@BeanProperty var status = ""
adds the following methods to the generated code
def setStatus(s: String) { this.status = s } def getStatus: String = this.status
However, you cannot call setStatus
from
Scala,
you should use the normal Scala access and assignment.
Constructor Summary | |
def
this
|
Constructor Detail |