Message-ID: <1638994924.97403.1398028520992.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_97402_313141782.1398028520992" ------=_Part_97402_313141782.1398028520992 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Properties can be added in a couple of ways. Firstly you can use the ins= tance method syntax seen previously:
In this case the property is dictated by the closure and is a read-only = property. You can add the equivalent setter but then remember you will have= to store the property somewhere for retrieval later so make sure you use t= hread safe code. For example you could store values in a synchronized Map u= sing the object identity as the key:
This is not the only technique however. For example in a servlet contain= er you may store the values in the currently executing request as request a= ttributes (as is done in some cases in Grails).
Alternatively you can simply assign a value as follows:
In this case the property is mutable and has both a setter and getter.= p>