3.11. Exercises

3.1 XML-based ObjectFactory: Our ObjectFactory uses Java classes (VersionInfo subclasses) to control the configuration. Nearly every Java utility that supports some sort of configuration or preferences file is moving toward XML-formatted files for this purpose. After learning XML syntax later in the book, you might try creating an ObjectFactory that uses XML files rather than Java classes to choose the specific classes to be instantiated by the ObjectFactory.

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.