-
Notifications
You must be signed in to change notification settings - Fork 1
Document Factories
inno-juanal edited this page Feb 21, 2017
·
3 revisions
The use of the Documents is convenient in most cases. The Documents class creates Document instances with a default conversion service and a default IData factory.
There may be occasions when some advanced aspects need to be customised:
- Conversion. For example, you may want to have a custom type to be converted automatically in several places
- IData classes to use. It's applicable only when you create a new document, not when you wrap an existing IData as a Document.
To get a customised Document instance, you'll need a different DocumentFactory instance. To create a document factory, use a DocumentFactoryBuilder.
You may create a class similar to Documents that uses your custom factory.
Refer to the JavaDoc documentation for more details.