Oracle GlassFish Server 3.0.1 Add-On Component Development Guide

Specifying Whether an Attribute Is Required or Optional

Whether an attribute is required or optional determines how GlassFish Server responds if the parameter is omitted when the element is written to the domain configuration file:

To specify whether an attribute is required or optional, set the required element of the @Attribute annotation as follows: