Package scala.beans
package beans
Type Members
class BeanProperty extends Annotation with StaticAnnotation
class BooleanBeanProperty extends Annotation with StaticAnnotation
This annotation has the same functionality as scala.beans.BeanProperty
, but the generated Bean getter will be named isFieldName
instead of getFieldName
.
- Annotations
- @field()
class BeanDescription extends Annotation
Provides a short description that will be included when generating bean information. This annotation can be attached to the bean itself, or to any member.
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.5) the generation of BeanInfo classes is no longer supported
class BeanDisplayName extends Annotation
Provides a display name when generating bean information. This annotation can be attached to the bean itself, or to any member.
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.5) the generation of BeanInfo classes is no longer supported
class BeanInfo extends Annotation
This annotation indicates that a JavaBean-compliant BeanInfo
class should be generated for this annotated Scala class.
-
A
val
becomes a read-only property.A var
becomes a read-write property.A def
becomes a method. - Annotations
- @deprecated
- Deprecated
(Since version 2.12.0) the generation of BeanInfo classes is no longer supported
class BeanInfoSkip extends Annotation
This annotation indicates that bean information should not be generated for the val, var, or def that it is attached to.
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.5) the generation of BeanInfo classes is no longer supported
abstract class ScalaBeanInfo extends SimpleBeanInfo
Provides some simple runtime processing necessary to create JavaBean descriptors for Scala entities. The compiler creates subclasses of this class automatically when the BeanInfo annotation is attached to a class.
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.5) the generation of BeanInfo classes is no longer supported
© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.12.9/scala/beans/index.html
When attached to a field, this annotation adds a setter and a getter method following the Java Bean convention. For example:
adds the following methods to the class:
For fields of type
Boolean
, if you need a getter namedisStatus
, use thescala.beans.BooleanBeanProperty
annotation instead.