BeanProperty

BeanProperty is an annotation type. We use this annotation to specify a property so that we can automatically generate BeanInfo classes. This is a new annotation for Java 9.

The BeanProperty annotation has the following optional elements:

  • boolean bound
  • String description
  • String[] enumerationValues
  • boolean expert
  • boolean hidden
  • boolean preferred
  • boolean required
  • boolean visualUpdate

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.