Hi,
Here are some ideas about how we could do the configuration for FOP.
Comments are welcome.
Use this class and various supporting classs (already in avalon
framework jar):
org.apache.avalon.framework.configuration.Configuration
>From a brief look at how this works it should be quite easy to use. We
just need to decide on an appropriate xml structure. I have attached an
example.
This can be used either with an xml file on the command line or through
embedding, eg. cocoon could pass a fop configuration class.
If the classes are not configured then default values are used.
Configurable classes:
- Driver
Passes configuration to user agent if not already set and to renderers.
- All renderers (ie. Renderer, StructureHandler implements)
This is so that the renderer can get its own specific information.
The PDFRenderer could have font setup, stream filters etc.
- Configurable FOUserAgent (have default FOUserAgent that can be
used/extended without config)
To make it possible to setup all the various options like dpi.
----------
The logkit Logger can be configured using this but it is not
appropriate. If FOP is run from the command line then it should do what
it already does and when embedding it would setup its own logger.
The image cache and other cache are similar. These can be set with a
static method and through the driver respectively.
Keiron.
fop.xconf
Description: Text document
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xxxxxxxxxxxxxx
For additional commands, email: fop-dev-help@xxxxxxxxxxxxxx
|