понеделник, 21 януари 2008 г.

Application properties



Записване на настройки на приложение перманентно:

- properties file

- java.beans.XMLEncoder
java.beans.XMLEncoder and java.beans.XMLDecoder. Will serialize a vector straight off without you having to write any code IF theobjects in the vector have:1. A default public constructor2. public accessor methods for the object properties you want toserialize OR the properties are publicNo need to parse anything or load up an XML parser. It works much likeObjectInputStream and ObjectOutputStream, except what you get is XML.

- java.io.Serializable
- JAXB
- Java Persistence API

Няма коментари: